Tuesday, 27 November 2012

Asp.Net(C#) inline coding Eval if statement

Use the tertiary expression as below,

<%#Eval("Present").ToString()=="True"?"P":"A"%></td>

No comments:

Post a Comment