On click event of image button
<p>I have a problem that when I click on the image button instead of redirect me to the corresponding page, it will just redirect back to the same page. </p>

<p>This is the code in asp;</p>

<pre><code>  &lt;asp:ImageButton ID="header1" src="Resources/Icons/Header1.jpg" runat="server" /&gt;
</code></pre>

<p>And this is in my page load in the code behind;</p>

<pre><code>  header1.Attributes.Add("onclick", "~/ChildSelection.aspx");
</code></pre>

<p>Any ideas why this is happening?</p>
