LinkButton OnCommand not called in User Control
<p>In my usercontrol, I have a repeater that contains some data from the DB.  Here's the Item Template</p>

<pre><code>&lt;ItemTemplate&gt;
            &lt;tr&gt;
                &lt;td class="tblCell"&gt;
                    &lt;a href="Document.aspx?docId=&lt;%# Eval("DOCID") %&gt;" target="_blank"&gt;
                        &lt;%# Eval("FILENAME") %&gt;&lt;/a&gt;
                &lt;/td&gt;
                &lt;td class="tblCell"&gt;
                &lt;asp:Label ID="_empty" runat="server" /&gt;
                    &lt;asp:LinkButton ID="_lnkDelete" runat="server" OnCommand="LinkDelete_Click" CommandArgument='&lt;%# Eval("DOCID") %&gt;' Text="Delete" OnClientClick="return confirm('Delete this Document?')" /&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
        &lt;/ItemTemplate&gt;
</code></pre>

<p>The Repeater shows a list of files, and each filename has it's own delete button.  The delete button however, doesn't call the OnCommand event when clicked.  It just posts back.  </p>

<pre><code>protected void LinkDelete_Click(object sender, CommandEventArgs e)
{
    MyObject _myObj = new MyObject(Convert.ToInt64(e.CommandArgument));
    _myObj.Deleted = "Y";
    _myObj.Update();
    DeleteFile(_myObj.Filename);
    GetFileInfo();
}
</code></pre>

<p>Is there some problem with using a LinkButton in this way within a user control?  If so, is there some workaround?  Or is the problem obvious, and I'm just not seeing it?</p>

<p>Thanks</p>
