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"%>
精彩评论