On Tue, 26 Apr 2005 13:20:40 -0500, James T. <gi*****@hotmail.com> wrote:
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>
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET