title: Adding Controls to Control Collection from an update panel
body: <p>Following these two threads:
  <a href="https://stackoverflow.com/questions/2203049/how-can-i-create-an-array-of-controls-in-c-net">How can I create an Array of Controls in C#.NET?</a>
  <a href="https://stackoverflow.com/questions/1954366/cannot-access-the-controls-inside-an-updatepanel">Cannot Access the Controls inside an UpdatePanel</a></p>
  
  <p>I current have this:</p>
  
  <pre><code>ControlCollection[] currentControlsInUpdatePanel = new ControlCollection[upForm.Controls.Count];
  foreach (Control ctl in ((UpdatePanel)upForm).ContentTemplateContainer.Controls)
  {
      currentControlsInUpdatePanel.
  }
  </code></pre>
  
  <p>currentControlsInUpdatePanel does not have an add or insert method.  why does the first link i post allow that user to .add to his collection.  This is what I want to do, find all the controls in my upForm update panel.  but i dont see how i can add it to my collection of controls.</p>