Error about 'System.Web.UI.Page'

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
<% [at] 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
ciupazNoSpamGrazie [ Mo, 14 April 2008 09:40 ] [ ID #1941876 ]

Re: Error about 'System.Web.UI.Page'

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> <% [at] 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>
nemtsev [ Mo, 14 April 2008 15:08 ] [ ID #1941886 ]

Re: Error about 'System.Web.UI.Page'

Luigi wrote:
> 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
> <% [at] 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.
gnewsgroup [ Di, 15 April 2008 01:11 ] [ ID #1942580 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Error about 'System.Web.UI.Page'

Vorheriges Thema: .net 1.1, using multiple textboxes and dropdown boxes
Nächstes Thema: Execute SSIS package from a Button