Hyperlink ImageUrl

  • Thread starter Thread starter James T.
  • Start date Start date
J

James T.

Hello!

How I can set width and height properties of image when Hyperlink ImageUrl
is set?

Thanks!
James
 
Hello!

How I can set width and height properties of image when Hyperlink
ImageUrl
is set?

Thanks!
James

As you can tell, there's no such setting (the height and width properties
are set as styles on the <a>, not the <img> that is rendered.

You can either use an ImageButton, or do something like this:

<asp:HyperLink id=HyperLink1 NavigateUrl="page.aspx" runat="server"><img
src="myimage.jpg" height="20" width="20" border="0"/></asp:HyperLink>
 
Back
Top