Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error about 'System.Web.UI.Page'

1 view
Skip to first unread message

Luigi

unread,
Apr 14, 2008, 3:40:01 AM4/14/08
to
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

Michael Nemtsev [MVP]

unread,
Apr 14, 2008, 9:08:25 AM4/14/08
to
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>


gnewsgroup

unread,
Apr 14, 2008, 7:11:59 PM4/14/08
to

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.

0 new messages