Monday, May 24, 2010

How can you add a link to an image in ASP?

I have the current code:


%26lt;asp:Image ID="Image2" runat="server" ImageUrl="~/PAGES/images/vit.gif"





But if I want to make it so if someone clicks the the image I can direct it to a URL.





Thanks


_Chris

How can you add a link to an image in ASP?
embed it inside %26lt;a%26gt; tag .. .i.e.





%26lt;a href="http://answers.yahoo.com"%26gt;%26lt;asp:ima... .... /%26gt;%26lt;/a%26gt;

playing cards

No comments:

Post a Comment