title: Looping through dynamic textboxes inside dynamic panel (inside placeholder)
body: <p>I have a <code>placeholder</code> I use for dynamically creating textboxes as well as buttons used for removing these textboxes on the client side. </p>
  
  <p><strong>Function for adding controls:</strong></p>
  
  <pre><code>    Panel panel = new Panel();
      Button btn = new Button { Text = "Remove" };
      btn.Click += btnRemove_Click;
      panel.Controls.Add(btn);
      panel.Controls.Add(new TextBox { ID = string.Concat("txtContractor", index) });
      placeHolder.Controls.Add(panel);
  </code></pre>
  
  <p>These controls are placed inside of a <code>panel</code> that does not have an ID. They are re-added whenever a post-back occurs so I don't think that is the issue.</p>
  
  <p>My question is how would I format my foreach loop for getting the text from the textboxes inside of the panel</p>
  
  <pre><code>foreach (Control ctrl in placeHolder.Controls)
  {
      if (ctrl is Panel)
      {
          //for each control inside this panel
          //{
                //if it is textbox
                //{ 
                    //do whatever 
                //}
          //}
       }            
  }
  </code></pre>