View Single Post
  #1 (permalink)  
Old June 10th, 2009, 02:09 PM
andres.gonzalez andres.gonzalez is offline
Registered User
 
Join Date: Jun 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default chapter two ...because it does not extend class 'System.Web.UI.Page'

Hello Everyone,

I try to run the example of adding records, and my browser tell me:

'Webform1 'is not a valid base class because it does not extend class 'System.Web.UI.Page'

my code is:

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace V2.PaidTimeOffDAL
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
}

And the other code is

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebForm1" %>


I don't understand why I get this error... can anyone help me please... thanks.