ASP.NET EventHandling
<p>I create a servercontrol for ASP.Net. For being short and precise I
just list the things I do:</p>

<p>(1) Call EnsureChildControls in OnInit</p>

<p>(2) Create a dynamic table in CreateChildControls:</p>

<pre><code>Table aTable = new Table();
aTable.ID = this.ID + "$" + T;
TableRow aRow = new TableRow();
aRow.ID = aTable.ID + "$R" + &lt;COUNTER&gt;.ToString();
TableCell aCell = new TableCell();

createLinkButton(row, col, caption, aCell, aRow.ID);

this.Controls.Add(aTable);
</code></pre>

<p>(3) Have a function like:</p>

<pre><code>void aLinkButton_Command(object sender, CommandEventArgs e)
{
    // Some stuff
    return;
}
</code></pre>

<p>(4) Have a function like:</p>

<pre><code>void createLinkButton(int row, int col, string caption, TableCell aCell, string baseID) {
    LinkButton lb = new LinkButton();
    lb.ID = baseID + "$" + row.ToString() + col.ToString();
    lb.Command += new CommandEventHandler(aLinkButton_Command);
    lb.Text = caption;
    lb.CommandName = "&lt;command&gt;";
    aCell.Controls.Add(lb);
    return;
}
</code></pre>

<p>But: The event is never called. The href is redered for postback, but the wired event never gets triggered.</p>

<p>No ideas anymore :(</p>

<p>Any ideas</p>
