Hyperlink ImageUrl

J

James T.

Hello!

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

Thanks!
James
 
C

Craig Deelsnyder

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top