Nkululeko Mazibuko

Nkululeko Mazibuko

  • NA
  • 15
  • 22.8k

How to make a image a link

Oct 19 2011 3:35 PM
Hi!

I have a slideshow feeding from the database on my homepage. Now when a user views those images I want him to be able to click on that image and be redirected to a certain page, this is how I did it but it does not work..


<a href = '<%#String.Format(ResolveUrl(~/PublicUsers/EventReservation.aspx?id=) Eval("EventId")))%>'>




<asp:Image ID="imgShowImage" runat="server" AlternateText="" BorderColor="#003366" BorderStyle="Solid" BorderWidth="2px" Height="242px" Style="border: 1px solid black;" Width="453px" /></a>


Any help is needed please urgently

Answers (1)