how to pass if condition through the inline HTML Code

Posted by Venkat | Labels: ,

Here is the code we are passing the if condition through inline code..

ex:

Visible='<%# IIf((((Eval("productsize")).ToString().Length > 0) OrElse (Decimal.Parse(Eval("productsize
")) <= 0)), "true", "false") %>'

instead of using some function or procedure or by writing code on Gridview_Rowdatabound
just we simple pass the condition to make the control visible True or flase

0 comments:

Post a Comment

Thanks for the Comments.

PayOffers.in