Error about "System.Web.UI.Page"
am 14.04.2008 09:40:01 von ciupazNoSpamGrazie
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
Re: Error about "System.Web.UI.Page"
am 14.04.2008 15:08:25 von nemtsev
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>
Re: Error about "System.Web.UI.Page"
am 15.04.2008 01:11:59 von gnewsgroup
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
> <%@ 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.