ImageClickEvenHandler doesn't call handler
<p>I have a dynamically created table and in some of the cells i have an image button associated with the redBall_Click() handler</p>

<p>(here is the code behind)</p>

<pre><code>    TableCell cellOK = new TableCell();
    cellOK.Style.Add(HtmlTextWriterStyle.TextAlign, "Center");
    cellOK.Width = new Unit("3%");
    ImageButton redBall = new ImageButton();
    redBall.CausesValidation = false;
    redBall.ID = id;
    redBall.ImageUrl = "~/App_Themes/DotRed.png";

    redBall.Click += new ImageClickEventHandler(redBall_Click);
    cellOK.Controls.Add(redBall);
</code></pre>

<p>My problem is that the redBall_Click() method is never called (neither after the PostBack)</p>

<p>How can i solve this?</p>

<p>P.S. : I can't use a static link because every ImageButton is associated with a specific ID that i must pass to the page i call (for example as a Session object)</p>
