title: c# find controls and control reference
body: <p>How do I reference controls in c# (runtime) without an ID?</p>
  
  <p>For example, I have a page with one table in it.  I will be loading this page recursively using xmlhttp so I cannot refer to the table using it's id.  Is there something to the effect of <code>this.Page.Controls[2]</code>? or <code>Controls["Tables"][0]</code>?</p>
  
  <p>I tried using the name <code>this.Controls.Find("MyTableName", true);</code> but need a reference to the library <code>System.Windows.Forms</code> (I think) but don't know how to add it as the <code>'using System.'</code> intellisense can't see it. </p>
  
  <p>I looped through all the controls in <code>this.Controls</code> but <code>'system.ui.web.control' does not contain a definition for '.Name'</code> so I can only search for ID.</p>
  
  <p>I am new to this and I am sure the solutions are infuriatingly simple.<br>
  Thanks in advance</p>