Anatoly Lubarsky

Logo
MSSQL, .NET, Design. Life and Music

Bug in ASP.NET rendering hyperlink

Or am I missing something ? Suppose you have something like this in your ASP.NET code:


<asp:HyperLink runat="server" id="RssLink" ImageUrl="/Images/xml.gif" />


Which should be rendered as html img inside html a href link. You go to c# code and set ToolTip property to the hyperlink. BTW, any other elegant way to create html img alt attribute is appreciated. The whole thing renders attribute title for both href link and image. And it is not XHTML compliant of course. Alt attribute is mandatory for img in xhtml transitional. It bothered me in ASP.NET 1.1, but in 2.0 rendering is supposed to be XHTML compliant. Any ideas ?


Related Posts:

Sunday, February 05, 2006 2:16 AM

Comments

# re: Bug in ASP.NET rendering hyperlink
How does it feel not even being able to use the world's most idiot-centric web-"language"?

3/11/2006 9:02 PM by Sum Fag

# re: Bug in ASP.NET rendering hyperlink
How does it feel been 14 years old ?

3/11/2006 9:05 PM by Anatoly Lubarsky

# re: Bug in ASP.NET rendering hyperlink
All you need to do is set the Text attribute on <asp:HyperLink>, simple as that!

11/28/2007 7:19 AM by Paul Wood

If your feedback doesn't appear right away, please be patient as it may take a few minutes to publish.

Post a Comment

Protected by CAPTCHAEnter the code you see
Name (*)  
E-mail (*)  
Url
Remember

Comment (*)