title: Can't access control ID in code behind
body: <p>I have the following code in my aspx page:</p>
  
  <pre><code> &lt;asp:Button runat="server" ID="myButton" Text="hello" /&gt;
  </code></pre>
  
  <p>and this in my code behind:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  { 
      myButton.Text = "bye"; 
  }
  </code></pre>
  
  <p>For some reason the intellisense picks up the "myButton" id in the code behind but when it compiles it says </p>
  
  <blockquote>
    <p>it can't build because it doesn't recognise it!</p>
  </blockquote>
  
  <p>My page is a default aspx page which uses a master page, the button is inside a content control and all is set to run at server correctly, the page runs and displays fine except for this button resolution issue! </p>
  
  <p>Any ideas?</p>