Hi,
Thank you for your message.
Well <asp:Hyperlink> can set the IMG alt tag when the URL of image is provided. The source for this is the "Text" attribute. I checked the example at w3schools and it seem to work.
The :
<form runat="server">
<asp:HyperLink
ImageUrl="/banners/w6.gif"
NavigateUrl="http://www.w3schools.com"
Text="Visit W3Schools!"
Target="_blank"
runat="server" />
</form>
Becomes:
<form method="post" action="demo_hyperlink.aspx" id="ctl00">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTc0MDEwNTM2MWRksjlGVMXXEiyUWXmgrY1fEFcdshOUSDLGFtBJefdeVIo=" />
</div>
<a href="http://www.w3schools.com" target="_blank"><img src="/banners/w6.gif" alt="Visit W3Schools!" /></a>
</form>
As you can see the alt tag of the image (not the "a") is being set correctly as it should.
Reference:
link text
Kind regards,
Richard Sustek