Adding controls to a table control dynamically
<p>I have one table control "table1"</p>

<p>And added controls to it in click event of one button as :</p>

<pre><code>protected void Button2_Click(object sender, EventArgs e)
{
    TableRow row;
    TableCell cell;
    for (int i = 0; i &lt; 3; ++i)
    {
        TextBox txt = new TextBox();
        txt.Text = i.ToString();
        row = new TableRow();
        cell = new TableCell();
        cell.Controls.Add(txt);
        row.Controls.Add(cell);
        Table1.Controls.Add(row);
    }
}
</code></pre>

<p>but i cant retrieve this controls in click event of another button. i think it is because of postback.</p>

<p>How can i prevent it?</p>
