title: problem with inherits and src attributes of page directive
body: <p>I am having a problem with the page directive. The code behind file is CodeBehind.cs within the namespace <strong>aspnetian</strong>. </p>
  
  <p>when i specify the inherit and src attribute like...</p>
  
  <pre><code>&lt;%@ Page Language= "C#" src="~/CodeBehind.cs" inherits="aspnetian.CodeBehind.cs" %&gt;
  </code></pre>
  
  <p>Parser Error Message: The base type 'aspnetian.CodeBehind.cs' does not exist in the source file '~/CodeBehind.cs'.</p>
  
  <p>If I remove the namespace and specify the directive like...</p>
  
  <pre><code>&lt;%@ Page Language= "C#" src="~/CodeBehind.cs" inherits="CodeBehind.cs" %&gt;
  </code></pre>
  
  <p>it gives this error:</p>
  
  <pre><code>class 'codeBehind' and namespace 'CodeBehind', declared in 'D:\AspPractice\WebApplication1\WebApplication1\codeBehind.aspx.designer.vb', conflict in namespace 'WebApplication1'. D:\AspPractice\WebApplication1
  \WebApplication1\codeBehind.aspx.vb 
  </code></pre>
  
  <p>Please tell me where I am mistaken and whats the correct way.</p>