ImageButton problem - CommandArgument doesn't work
<p>I am rather new at asp.net.</p>

<p>I´m trying to use ImageButton to link to another page. ImageButton is inside a Repeater and the code is following:</p>

<pre><code>&lt;ul id = "ulMap"&gt; 
    &lt;asp:Repeater ID="Repeater1" runat="server" &gt;
        &lt;ItemTemplate&gt;
            &lt;li&gt;
                &lt;asp:ImageButton ID="ImageButton1" 
                                 CommandArgument='&lt;%#Eval("Nav_ID") %&gt;' 
                                 runat="server" 
                                 ImageUrl="~/Icons/Ny_mappa.png"
                                 onclick="ImageButton1_Click" /&gt;
                &lt;br /&gt;
                &lt;asp:LinkButton ID="lnkButton" 
                                CommandArgument='&lt;%#Eval("Nav_ID") %&gt;' 
                                runat="server" 
                                onclick="LinkButton3_Click" 
                                Text='&lt;%#Eval("Nav_Name") %&gt;'&gt;&lt;/asp:LinkButton&gt;
            &lt;/li&gt;
        &lt;/ItemTemplate&gt;
    &lt;/asp:Repeater&gt; 
&lt;/ul&gt;
</code></pre>

<p>And the code behind is the following: </p>

<pre><code>protected void LinkButton3_Click(object sender, EventArgs e)
{
    Guid guid = new Guid(((LinkButton)sender).CommandArgument);

    var query = from n in dc.Nemanet_Navigations
                where n.UserId == userGuid &amp;&amp; n.Nav_pID == guid
                orderby n.Nav_Name ascending
                select n;

    Repeater1.DataSource = query;
    Repeater1.DataBind();
}

protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
    Guid guid = new Guid(((ImageButton)sender).CommandArgument);

    var query = from n in dc.Nemanet_Navigations
                where n.UserId == userGuid &amp;&amp; n.Nav_pID == guid
                orderby n.Nav_Name ascending
                select n;

    Repeater1.DataSource = query;
    Repeater1.DataBind();
}
</code></pre>

<p>Well, for the <code>LinkButton</code> this works fine but not for <code>ImageButton</code>. <code>Protected void ImageButton1_Click</code> never happens. Can anybody help?</p>
