The easiest way to do it is to bind the Visible property:
<asp:Literal ... Visible='<%= Convert.ToInt32(Eval("YourCol")) == 0 %>' ... />
<asp:HyperLink ... Visible='<%= Convert.ToInt32(Eval("YourCol")) != 0 %>' ... />
This shows the Literal when your database column YourCol is zero, otherwise it shows the HyperLink.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.