Re: Repeater and Eval

Chris Anderson <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <[email protected]>
Try :

<asp:HyperLink 
  runat="server"
  NavigateUrl='<%# Eval("Url") %>'
  Visible='<%# (!String.IsNullOrEmpty(Eval("Url"))).ToString() %>'
>
<%# Eval("Title") %></asp:HyperLink>


i.e. set the Visible property equal to "True" if the Url is not empty,
and "False" if it is.

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.