How to preserve dynamically created controls?
<p>I want to preserve the dynamically created control when postback occurs .</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{

}

private void CreateTable()
{
    HtmlTableRow objHtmlTblRow = new HtmlTableRow();
    HtmlTableCell objHtmlTableCell = new HtmlTableCell();
    objHtmlTableCell.Controls.Add(new TextBox());
    objHtmlTblRow.Cells.Add(objHtmlTableCell);
    mytable.Rows.Add(objHtmlTblRow);
    this.SaveControlState();
  //  this.Controls.Add(mytable);
}
protected void Button1_Click(object sender, EventArgs e)
{
    CreateTable();
}
</code></pre>

<blockquote>
  <p>It can be achieved by calling CreateTable() in Page_Load. Is there any alternative way to preserve the control</p>
</blockquote>

<p>Thanks</p>
