title: Overriding Page class constructor in ASP.NET code-behind file -- when is it called?
body: <p>If I override the System.Web.UI.Page constructor, as shown, when does DoSomething() get called in terms of the page lifecycle?   I can't seem to find this documented anywhere.  </p>
  
  <pre><code>namespace NameSpace1
  {
      public partial class MyClass : System.Web.UI.Page
      {
          public MyClass()
          {
              DoSomething();
          }
  
          protected void Page_Load(object sender, EventArgs e)
          {
  
          }
      }
  }
  </code></pre>
  
  <p>For reference, here is the ASP.NET Page Lifecycle Overview:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/ms178472.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/ms178472.aspx</a></p>
  
  <p>Turns out the best answer was right in the MSDN article.  I just had to look carefully at the diagram.  Construct is the very first event in the Page life cycle (comes before PreInit, Init, Load, etc).  </p>
  
  <p><a href="http://img156.imageshack.us/img156/9246/lifecyclen.jpg" rel="noreferrer">Diagram http://img156.imageshack.us/img156/9246/lifecyclen.jpg</a></p>