title: Can't access controls in Page_Load
body: <p>I have a simple .ascx file</p>
  
  <pre><code>&lt;%@ Control Language="C#"
      AutoEventWireup="true"
      CodeFile="Profile.ascx.cs"
      Inherits="UserControls_Profile" %&gt;
  &lt;%@ Register Assembly="RadChart.Net2"
      Namespace="Telerik.WebControls"
      TagPrefix="radC" %&gt;
  &lt;div id="testdiv" runat="server"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>in code behind:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e) {
    Chart();
  }
  
  private void Chart() {
    testdiv.Visible=false;
  }
  </code></pre>
  
  <p>When I try to access the page I get the exception:</p>
  
  <blockquote>
    <p>error CS0103: The name 'testdiv' does not exist in the current context</p>
  </blockquote>
  
  <p>I have tried onload as well but same result!</p>