Error about 'System.Web.UI.Page'

  • Thread starter Thread starter Luigi
  • Start date Start date
L

Luigi

Hi all,
in my web page (ASP.NET 2.0) I have this problem:

is not allowed here because it does not extend class 'System.Web.UI.Page'

and the page is this:

REGISTRY PAG. ASP
<%@ Page Language="C#" MasterPageFile="~/XmlReport.master"
AutoEventWireup="true" CodeBehind="Login.aspx.cs"
Inherits="XmlReport.Web.Login" %>

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using EOS.XmlReport.MySqlLoginRoles;
using EOS.LibraryKey;
using EOS.XmlReport.BusinessLogicLayer;
using EOS.XmlReportLib.UTI;

public partial class login : System.Web.UI.Page

Why this error pop up?

Thanks in advance.

Luigi
 
Hello Luigi,

Are you sure that u are extending partialy the XmlReport.Web.Login and not
login from System!?

just specify the full name

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


L> Hi all,
L> in my web page (ASP.NET 2.0) I have this problem:
L> is not allowed here because it does not extend class
L> 'System.Web.UI.Page'
L>
L> and the page is this:
L>
L> REGISTRY PAG. ASP
L> <%@ Page Language="C#" MasterPageFile="~/XmlReport.master"
L> AutoEventWireup="true" CodeBehind="Login.aspx.cs"
L> Inherits="XmlReport.Web.Login" %>
L> using System;
L> using System.Data;
L> using System.Configuration;
L> using System.Collections;
L> using System.Web;
L> using System.Web.Security;
L> using System.Web.UI;
L> using System.Web.UI.WebControls;
L> using System.Web.UI.WebControls.WebParts;
L> using System.Web.UI.HtmlControls;
L> using EOS.XmlReport.MySqlLoginRoles;
L> using EOS.LibraryKey;
L> using EOS.XmlReport.BusinessLogicLayer;
L> using EOS.XmlReportLib.UTI;
L> public partial class login : System.Web.UI.Page
L>
L> Why this error pop up?
L>
L> Thanks in advance.
L>
L> Luigi
L>
 
Luigi said:
Hi all,
in my web page (ASP.NET 2.0) I have this problem:

is not allowed here because it does not extend class 'System.Web.UI.Page'

and the page is this:

REGISTRY PAG. ASP
<%@ Page Language="C#" MasterPageFile="~/XmlReport.master"
AutoEventWireup="true" CodeBehind="Login.aspx.cs"
Inherits="XmlReport.Web.Login" %>

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using EOS.XmlReport.MySqlLoginRoles;
using EOS.LibraryKey;
using EOS.XmlReport.BusinessLogicLayer;
using EOS.XmlReportLib.UTI;

public partial class login : System.Web.UI.Page

Why this error pop up?

Thanks in advance.

Luigi

although login and Login are different, it may be a good idea to wrap
up your login class with your namespace to avoid possible conflict
with the built-in Login class.
 
Back
Top