Use If condition inside the Gridiview or Datalist

Posted by Venkat | Labels:

Here the Html Code , html was not allowed here so i have conver < - &lt and > - &gt


&lt asp
:HyperLink ID="HyperLink1" Visible=" &lt %# isFilePathEmpty(Eval("filepath")) % &gt " NavigateUrl="~/AddPost.aspx?ForumID=18#" runat="server" &gt
&lt %# Eval("PartNumber") &gt
&lt /asp:HyperLink &gt

then create a method called isFilePathEmpty(string filePath) in the code behind which returns a boolean.

0 comments:

Post a Comment

Thanks for the Comments.

PayOffers.in