Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

Error about 'System.Web.UI.Page'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Luigi - 14 Apr 2008 08:40 GMT
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] - 14 Apr 2008 14:08 GMT
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 - 15 Apr 2008 00:11 GMT
> Hi all,
> in my web page (ASP.NET 2.0) I have this problem:
[quoted text clipped - 30 lines]
>
> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.