title: Create textbox dynamically without postback
body: <p>I would like to have a button which onclick  would dynamically create a textbox without any postback. I was trying to do it using the update panel but till now I have not managed to do it. Nothing  is created on button click. The following is the code I have used:</p>
  
  <pre><code> &lt;asp:PlaceHolder ID="textboxes" runat="server"/&gt;
  
       &lt;asp:ScriptManager ID="scriptMgr" runat="server" /&gt;
                  &lt;asp:UpdatePanel ID="updatePnl" runat="server"&gt;
                      &lt;ContentTemplate&gt;
                          &lt;div&gt;
                              &lt;asp:Button id="Button" text="Add Destination" OnClick="btnCreate_Click" runat="server"/&gt;
                          &lt;/div&gt;
                      &lt;/ContentTemplate&gt;
                  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>CODEBEHIND</p>
  
  <pre><code>  protected void btnCreate_Click(object sender, EventArgs e)
          {
               textboxes.Controls.Add(new TextBox() { ID = "txt" + 1 });
  
          }
  </code></pre>
  
  <p>This is what I get on aler(container);:</p>
  
  <p><img src="https://i.stack.imgur.com/9YTvT.png" alt="enter image description here"></p>