title: Dynamically add a new text box when clicking a button
body: <p>I'm using this code</p>
  
  <pre><code>&lt;asp:PlaceHolder ID="PlaceHolder1" runat="server"&gt;&lt;/asp:PlaceHolder&gt;
  &lt;asp:Button ID="addnewtext" runat="server" Text="Add" onclick="addnewtext_Click" width="76px" /&gt;
  </code></pre>
  
  <p>and <strong>aspx.cs</strong> page code:</p>
  
  <pre><code>TextBox tb;
  static int i = 0;
  protected void addnewtext_Click(object sender, EventArgs e)
  {
      tb = new TextBox();
      tb.ID = i.ToString();
  
      PlaceHolder1.Controls.Add(tb);
      i++;
  }
  </code></pre>
  
  <p>On every click on the button I want to add another text box.</p>