ASP:Imagebutton fail to post back in gridview
<pre><code>    &lt;asp:GridView ID="gv1" runat="server" Width="100%" DataSourceID="ods1" AutoGenerateColumns="false"
    DataKeyNames="FileID" HeaderStyle-Height="20px"&gt;
    &lt;Columns&gt;
        &lt;asp:TemplateField ItemStyle-Width="25px" ItemStyle-HorizontalAlign="Center"&gt;
            &lt;ItemTemplate&gt;
                 &lt;asp:ImageButton ID="imgMimeType" runat="server" CommandName="download" /&gt;
            &lt;/ItemTemplate&gt;

...
</code></pre>

<p>I have defined my image button as above, but for some reason row command fails to fire off when I click the button.  </p>

<p>Strangely, linkbutton in another column works just fine.  </p>

<p>How do I make it so that image button will fire off post back?</p>

<p><strong>Row bind</strong></p>

<pre><code>Image Button imb = e.Row.FindControl("imgMimeType") as ImageButton;
    if (imb != null)
    {
       imb.CommandArgument = file.FileID.ToString();
       imb.AlternateText = imb.ToolTip = file.MimeType;
       if (file.MimeType.Contains("zip"))
       {

               imb.ImageUrl = "~/Images/mimetypes/zip-icon.png";
           }
    ...
</code></pre>

<p><strong>Row command code</strong></p>

<pre><code>public void gv1_RowCommand(object sender, GridViewCommandEventArgs e)
   {
      switch (e.CommandName.ToLower())
      {
          case "download":
...
</code></pre>
