I would like to place an image in my application. when I click on it I want to move to another page. In general my asp:image to work as link Is that possible ??
See Question&Answers more detail:osI would like to place an image in my application. when I click on it I want to move to another page. In general my asp:image to work as link Is that possible ??
See Question&Answers more detail:osYou can use an ImageButton
with a server side click event:
Response.Redirect("SecondPage.aspx");
Or alternatively, you could wrap a Hyperlink
control around the Image
control:
<asp:hyperlink id="link" runat="server">
<asp:image id="img" runat="server" imageurl="..." />
</asp:hyperlink>
Or just use a HTML anchor tag if you don't need the link to be dynamic:
<a href="..">
<asp:image id="img" runat="server" imageurl="..." />
</a>