Use If condition inside the Gridiview or Datalist
Here the Html Code , html was not allowed here so i have conver < - < and > - >
< asp:HyperLink ID="HyperLink1" Visible=" < %# isFilePathEmpty(Eval("filepath")) % > " NavigateUrl="~/AddPost.aspx?ForumID=18#" runat="server" >
< %# Eval("PartNumber") >
< /asp:HyperLink >
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.