Custom Page class
<p>I'm trying to create a custom class for my pages in my project.</p>

<p>Here's the default.aspx.cs</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : FrontPage
{
    public String text;
    protected void Page_Load(object sender, EventArgs e)
    {
        text = "";
    }
}
</code></pre>

<p>Here's the FrontPage class:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// &lt;summary&gt;
/// Summary description for FrontPage
/// &lt;/summary&gt;
public class FrontPage
{
    public DataContext db = new DataContext();
    public String a;
    //public void Page_Load(object sender, EventArgs e)
    //{        
    //}
}
</code></pre>

<p>The problem is I keep getting an error:</p>

<p><code>Make sure the class is defined in this kodefil corresponds to attribute 'inherits' and that it extends the correct base class (eg. Page or UserControl).</code></p>

<p>What am I doing wrong?</p>
