title: Asp.net declaratively adding controls. Where are they instantiated?
body: <p>Ive been getting back into asp.net web forms and I had a question about the controls.
  When I add a control declaratively (ie by dragging and drop a control from the toolbox), for instance a button onto an aspx page, what I expected to occur was for a button object to be declared and instantiated in the designer.cs file
  Instead all I can find is </p>
  
  <pre><code>protected global::System.Web.UI.WebControls.Button ButtonTest;
  </code></pre>
  
  <p>but nowhere can I find the code that created a new button object and assigns it to ButtonTest. Does anybody know where/when this occurs?</p>