Dynamically adding a control on ajax postback to the Page.Form?
<p>I have a simple web page test.aspx with the following code .</p>

<pre><code>&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;
        &lt;asp:TextBox runat="server" ID="_txt1" /&gt;
        &lt;asp:Button Text="Bu" runat="server" ID="_btn" OnClick="_Click" /&gt;
    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
</code></pre>

<p>And the cs file as follows :</p>

<pre><code>protected void _Click(object s, EventArgs e)
        {
            Button btg = new Button();
            btg.Text = "frfrfrfrfrfr";
            this.Page.Form.Controls.Add(btg);
        }
</code></pre>

<p>Works fine i create a control dynamically .</p>

<p>Now if i change the aspx to have a ScriptManager and the controls inside an UpdatePanel The control button is not created . And i want to add it to the Page.Form not has a control inside the UpdatePanel .Can anyone tell me what is it that i am doing wrong here ?? Thanks in advance.</p>
