title: Code behind file not recognizing controls in *.ascx
body: <p>I have a QuestionControl.ascx and a QuestionControl.ascx.cs code behind file I copied to a new project.  When I build the project any references in the code behind file to controls declared in the ascx gives me this error:</p>
  
  <blockquote>
    <p>'QuestionControl' does not contain a
    definition for 'rdbtnlstQuestion1' and
    no extension method
    'rdbtnlstQuestion1' accepting a first
    argument of type 'QuestionControl'
    could be found (are you missing a
    using directive or an assembly
    reference?)</p>
  </blockquote>
  
  <p>This is at the top of my *.ascx:</p>
  
  <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeFile="QuestionControl.ascx.cs" Inherits="QuestionControl" %&gt;
  </code></pre>
  
  <p>I've also tried CodeBehind:</p>
  
  <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="QuestionControl.ascx.cs" Inherits="QuestionControl" %&gt;
  </code></pre>
  
  <p>This is the top of my class in the codebehind file, it is not contained in a namespace:</p>
  
  <pre><code>public partial class QuestionControl : System.Web.UI.UserControl
  {
  </code></pre>