title: How to find control on page by id
body: <p>Is there a simple way to find a control in ASP.NET by id (in any nested container)? Other than traversing whole controls tree.</p>
  
  <p>Something like this example:</p>
  
  <pre><code>TextBox tb = new TextBox() { ID = "textboxId"};
  panel3.Controls.Add(tb);
  </code></pre>
  
  <p>And in other method/class:  </p>
  
  <pre><code> TextBox nameTextbox = MethodToFindControl("textboxId") as TextBox;
  </code></pre>