Posted: 7/7/2011
I want to remove underline in hyperlink while page loading or executing.
Plz tell me how to make it
Thanking you,
J.Vamsidhar
May I know why in this world you need this?
Posted: 7/8/2011
vamsidhar janjanam said: I want to remove underline in hyperlink while page loading or executing. Plz tell me how to make it Thanking you,J.Vamsidhar
Hi,
<asp:HyperLink ID="hypView" runat="server" Text="View" ></asp:HyperLink>
If you want to do it from cs side then you can do it this way.
hypUrl.ControlStyle.Font.Underline = false;
Thanks & Regards,
Sumit Arora
Posted: 7/22/2011
A better way might be to add css class to the hyperlink
<asp:HyperLink ID="hypView" runat="server" Text="View" cssclass="someclass" ></asp:HyperLink>
and in style part put the following code:
.someclass
{
text-decoration: none;
}
Posted: 1/11/2012
I believe the "Font-Underline" property in the ASP HyperLink control would also do the job. Just set it to false.
Example:
<asp:HyperLink ID="hlTest" runat="server" Text="View" Font-Underline="false" ></asp:HyperLink>