title: Find a control on a page with a master page
body: <p>I have to find a <code>Control</code> in an aspx page bound to a master page.</p>
  
  <p>The master page contains:</p>
  
  <pre><code>&lt;asp:ContentPlaceHolder ID="MainContent" runat="server"/&gt;               
  </code></pre>
  
  <p>The content page contains:</p>
  
  <pre><code>&lt;asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server"&gt;
  &lt;/asp:Content&gt;
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server"&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>I added a <code>Table</code> with <code>ID</code> <code>formtable</code> as a child of <code>Content2</code>.</p>
  
  <p>I tried to use the following code to access the <code>Table</code>, but the code returns <code>null</code>:</p>
  
  <pre><code>protected void Ok_Click(object sender, EventArgs e)
  {
      Table tblForm = this.FindControl("MainContent").FindControl("formtable") as Table;                 
  }
  </code></pre>
  
  <p>How can I access the <code>Table</code>?</p>