title: Placeholder controls count always return 0 in button click
body: <p>I created some TextBox dynamically using the code below and I entered some text in this TextBox. Now I want to read this control's ID while adding the text into a database. How can I get the ID of this TextBox on the click of a Button.</p>
  
  <pre><code>for (int i = 0; i &lt; dv_count; i++)
  {
      TextBox txt_box = new TextBox();
      txt_box.Text = "";
      txt_box.ID = "s" + i;
      placeholder1.Controls.Add(txt_box);
  }
  
  protected void btn_act_proceed_Click(object sender, EventArgs e)
  {
      int count = placeholder1.Controls.Count; //always return 0
  
      if (count &gt; 0)
      {
          int dv_count = count / 2;
  
          for (int i = 0; i &lt; dv_count; i++)
          {
              TextBox  lbl_type = (TextBox )placeholder1.FindControl("s" + i);
          }
      }
  }
  </code></pre>