On button Click in the Grid I can't get in to the function
<p>Using CSharp, I'm not getting into the (GridView1_RowDeleting) function on the button click.. I don't know whats the problem is but wasted alot of time on it.</p>

<p>Default.aspx</p>

<pre><code>asp:GridView ID="GridView1" runat="server" OnRowDeleting="GridView1_RowDeleting"
    AllowPaging="True"&gt;
    &lt;Columns&gt;
        &lt;asp:TemplateField&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:ImageButton  ID="img1" runat="server" CommandName="GridView1_RowDeleting"  ImageUrl="~/Images/cross.png" /&gt;

            &lt;/ItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
    &lt;/Columns&gt;
&lt;/asp:GridView&gt;
</code></pre>

<p>Default.aspx.cs</p>

<pre><code> protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{

}
</code></pre>
