Clicking on ImageButton will trigger a PostBack on the server, where you can handle the 'Click' event. From there you can redirect to wherever you want.
<asp:ImageButton runat="server" ID="ImageButton1" OnClick="ImageButton1_Click" ...
protected void ImageButton1_Click(object sender, EventArgs e) {
Response.Redirect("http://www.google.com");
}
You can also perform client-side redirects using the OnClientClick property for ImageButton:
<asp:ImageButton runat="server" ID="ImageButton1" OnClientClick="window.location.href = 'http://www.google.com';" ...
Or you can escape all this complexity by wrapping a standard <img />ASP.NET element or image with a link:
<a href="http://google.com">
<img src="/someimage.jpg" alt="" />
</a>
source
share