title: Type '_Default' already defines a member called 'Page_Load' with the same parameter types
body: <p>I've been renaming some classes and packages in my aspx project and now i have this error:</p>
  
  <blockquote>
    <p>"Type '_Default' already defines a member called 'Page_Load' with the
    same parameter types"</p>
  </blockquote>
  
  <p>I have two aspx pages. In the default.aspx codebehind i see:</p>
  
  <p>Default.aspx:</p>
  
  <pre><code>&lt;%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
  CodeBehind="Default.aspx.cs" Inherits="_Default" %&gt;
  </code></pre>
  
  <p>Default.aspx.cs:</p>
  
  <pre><code>public partial class _Default : System.Web.UI.Page
      {
          protected void Page_Load(object sender, EventArgs e)
          //error line under 'Page_Load'
      }
  </code></pre>
  
  <p>search.aspx:</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="_Default" %&gt;
  </code></pre>
  
  <p>search.aspx.cs:</p>
  
  <pre><code>public partial class _Default : System.Web.UI.Page
      {
          protected void Page_Load(object sender, EventArgs e)
  
      }
  </code></pre>
  
  <p>Every new ASPX page I add to my project is automaticly added to some namespace. </p>
  
  <p>I've tried changing the inherits attribuut. But i couldn't find a way to fix this error and to get rid of the namespace.</p>
  
  <p>I'm using Visual Studio 2010. </p>
  
  <p><img src="https://i.stack.imgur.com/IP5Qz.png" alt="My project structure"></p>