开发者

how to bind image in image control in asp.net

i want to bind image in image control but according to the value in Eval

if Eval == True then imageurl = "image1" else imageurl = "i开发者_Python百科mage"

how to write if condition with eval to get above output


Try

<%#(Eval("Columnname").ToString()=="True")?"Image1.jpg":"Image2.jpg"%>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜