Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I Remove the Underline from a Hyperlink Web Server Control?

Status
Not open for further replies.

shack623

Programmer
Aug 11, 2001
12
US
Is it possible to remove the underline from the hyperlinks defined on an aspx form using the Hyperlink Web Server Control? There is not a style property for this control so using style="text-decoration: none" will not work. That only works for the HTML Hyperlink tag that uses the <A> element. Setting the FONT.UNDERLINE property to false does not work either. (So what is setting the FONT.UNDERLINE property really supposed to do?)
 
>>style="text-decoration: none" will not work

create a CSS file or define ur own style tag in the page like this:

.Lnk{text-decoration: none}


<asp:HyperLink CssClass="Lnk"...

Known is handfull, Unknown is worldfull
 
Setting the FONT.UNDERLINE property to false does not work either. (So what is setting the FONT.UNDERLINE property really supposed to do?)
The Font-Underline property works perfectly well and removes the underline when set to false. I suggest you look to see if anything else is interfering with it...


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top