title: How to get control in ASP.NET PreInit event?
body: <p>How to get control in ASP.NET PreInit event? Pointers are null and FindControl method returns null.</p>
  
  <p>I am using master and content pages.
  Markup of the content page looks like this:</p>
  
  <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentBody" runat="server"&gt;
     &lt;asp:Table ID="Table1" runat="server" Width="100%"&gt;
        .....
     &lt;/asp:Table&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>And code like this:</p>
  
  <pre><code>private void Page_PreInit(object sender, EventArgs e)
  {
      Control table = this.FindControl("Table1");
      //table is null here
  }
  </code></pre>
  
  <p>So table still is null after this.FindControl("Table1"). NamingContainer of the page is null too. What am I doing wrong?</p>
  
  <p><strong>UPDATE</strong> I have to use this event to create controls. As said in the <a href="http://msdn.microsoft.com/en-us/library/ms178472.aspx" rel="noreferrer">ASP.NET Page Life Cycle Overview</a> this event should be used for dynamic control creation. I need to create a list of links in my table. May be there is another way to do it?</p>