Wednesday, 17 April 2013

ASP.NET C# Short Expression

<asp:Image ID="img1" ImageUrl='<%# (Eval("YourColumn").ToString()==1)? "Image1-url": "Image2-url %>' runat="server" /> 

No comments:

Post a Comment