Hiding the anchor tag in asp.net 1.1 based on condition - help me
- From: "vishnu" <settyv@xxxxxxxxx>
- Date: 1 Dec 2006 11:21:11 -0800
Hi,
I have a link that is coming from the database.Now if the link is
empty i dont want to display in datalist .How can i do that?
<td><asp:DataList id="DataList1" Runat="server"
RepeatDirection="Horizontal" RepeatColumns="3" CellPadding="5"
CellSpacing="2" Width="100%" EnableViewState="False">
<itemtemplate>
<b>
<%# DataBinder.Eval(Container.DataItem, "FIRST_NAME") %>
<%# DataBinder.Eval(Container.DataItem, "MIDDLE_NAME") %>
<%# DataBinder.Eval(Container.DataItem, "LAST_NAME") %>
</b>
<br>
<%# DataBinder.Eval(Container.DataItem, "ADDRESS1") %>
<%# DataBinder.Eval(Container.DataItem, "ADDRESS2") %>
<br>
<%# DataBinder.Eval(Container.DataItem, "CITY") %>
<%# DataBinder.Eval(Container.DataItem, "STATE") %>
<%# DataBinder.Eval(Container.DataItem, "ZIP_CODE") %>
<br>
<%# DataBinder.Eval(Container.DataItem, "TELEPHONE") %>
<br>
<%# DataBinder.Eval(Container.DataItem, "EMAIL") %>
<br>
<a id="Resume" href="<%#
DataBinder.Eval(Container.DataItem, "BIO_RESUME") %>" name="Resume"
Target="_blank">click here for bio/resume</a></b>
</itemtemplate>
</asp:DataList></td>
Thanks,
Vishnu
.
- Follow-Ups:
- Re: Hiding the anchor tag in asp.net 1.1 based on condition - help me
- From: Rad [Visual C# MVP]
- Re: Hiding the anchor tag in asp.net 1.1 based on condition - help me
- Prev by Date: File uploading along with form elements using WebRequest or WebClient
- Next by Date: Re: Bind ASP.NET Image Control
- Previous by thread: File uploading along with form elements using WebRequest or WebClient
- Next by thread: Re: Hiding the anchor tag in asp.net 1.1 based on condition - help me
- Index(es):
Relevant Pages
|