srujanac# 0 Newbie Poster

when i click on the image button it should redirect me to another page.
but iam unable to.
the code i have written is
<asp:ImageButton runat="server" ID="imgBtn" onclick="imgBtn_Click"/>


protected void imgBtn_Click(object sender, ImageClickEventArgs e) { Response.Redirect("~/resource.aspx"); }

can any one help me out