ASP.NET HyperLink..No Title or Alt Attributes?

Hi all,

Im just changing all my standard html links to <asp:HyperLink /> so I can set the attributes, text etc in the code behind, but I can’t see any properties on the HyperLink control for setting title or alt tags?

Which is quite important to me for seo.

Have I just overlooked it or is there no way to do this?



you can - use the hyperlink.Attributes.Add(“title”,“hello world”) method.


Ah cool, thanks alot, I just noticed it has a .ToolTip property too, must have overlooked it somehow :s

Yeah, the tooltip will generate the title tag when its sent to the client.


Off Topic:

There’s no alt attribute for links :wink: