Hiding the anchor tag in asp.net 1.1 based on condition - help me

Tech-Archive recommends: Fix windows errors by optimizing your registry




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

.



Relevant Pages

  • Re: Populate value when a form is opened
    ... > I do not know which part you dont understand. ... I open "formA" from ... When the "formA" is opened the combo box is empty (like other ... >> display the ...
    (microsoft.public.access.formscoding)
  • Re: messagebox code not working
    ... The variable shows as empty and the application falls over when trying to display the second combobox value. ... i dont know why this is the case. ...
    (microsoft.public.dotnet.general)
  • RE: OWC11 Pivot Table has problem when i use LastChild functions
    ... custom rollup formula or if i set pivot table control always display empty ... *The data/Cube is valid as it work fine in Excel 2003 Pivot Table. ... Microsoft Online Community Support ...
    (microsoft.public.office.developer.web.components)
  • Re: Fuzzy Still Pictures
    ... "Dont use DV AVI since it distorts pixels to non-square size." ... Isn't pixel aspect specific to the display device, ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: BLANK OE-6 eMail text area in todays and any previous days email
    ... by from my ISP, then the text area of the message is completely empty, so I ... received emails and thir contents are displayed in each one's message window ... I cannot find any "option" that affects the display of message text. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)