G
Guest
I'd like to hide a Hyperlink object in a repeater if the hyperlink is NULL. So,
<repeater id="rpt" runat="server">
<itemtemplate>
<%# DataBinder.Eval(Container.DataItem, "company") %> <br />
<asp:hyperlink id="lnk" navigateurl='<%# DataBinder.Eval(Container.DataItem,
"link") %>' imageurl="video.gif" runat="server" />
<itemtemplate>
</repeater>
This repeater will be bound to a Date Reader. If the link field is null,
then I'd like to make the hyperlink object invisible, to hide the image. Is
there any way to accomplish this?
Thanks,
<repeater id="rpt" runat="server">
<itemtemplate>
<%# DataBinder.Eval(Container.DataItem, "company") %> <br />
<asp:hyperlink id="lnk" navigateurl='<%# DataBinder.Eval(Container.DataItem,
"link") %>' imageurl="video.gif" runat="server" />
<itemtemplate>
</repeater>
This repeater will be bound to a Date Reader. If the link field is null,
then I'd like to make the hyperlink object invisible, to hide the image. Is
there any way to accomplish this?
Thanks,