Link to home
Start Free TrialLog in
Avatar of CPOINT2000
CPOINT2000Flag for United States of America

asked on

type 'system.web.ui.page' is not defined

I added a new form to my web site and now I get the;

type 'system.web.ui.page' is not defined

on all code behind form, where xxx is form name ;

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="xxx.aspx.vb" Inherits="xxx" %>

I am in a hurry to get this resolved, help.  Thanks in advance.
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Are you inheriting the Page class at the top of your code-behind :
Public Class xxx

    Inherits Page
    
    Public Sub Page_Load .....
...

    End Sub
End Class

Open in new window

Avatar of CPOINT2000

ASKER

Yes I am

Partial Public Class inq_tkt_det
    Inherits System.Web.UI.Page

I have other pages in the project but they are fine.
For example, same project different form (these are ok);

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="default.aspx.vb" Inherits="xxx._Default" %>
code behind:
Partial Public Class _Default
    Inherits System.Web.UI.Page

another,
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="JMW_Rev_analys.aspx.vb" Inherits="xxx.WebForm1" %>

code behind:
Partial Public Class WebForm1
    Inherits System.Web.UI.Page
Is this a web site project or web application project?
Is there a xxx.aspx.designer.vb file as well as an xxx.aspx.vb file?
web aplication.  

yes for example I have;
menu_main.aspx.vb
menu_main.aspx

This happened in the past before, but I do not recall I how I resolved it.
ASKER CERTIFIED SOLUTION
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you.  That saved me from lot's of frustration.  Didthe trick.