• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2511
  • Last Modified:

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.
0
CPOINT2000
Asked:
CPOINT2000
  • 4
  • 3
1 Solution
 
Paul JacksonSoftware EngineerCommented:
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

0
 
CPOINT2000Author Commented:
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.
0
 
CPOINT2000Author Commented:
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
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Paul JacksonSoftware EngineerCommented:
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?
0
 
CPOINT2000Author Commented:
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.
0
 
Paul JacksonSoftware EngineerCommented:
Please try right-clicking the project in solution explorer and select 'Convert to Web Application'.
0
 
CPOINT2000Author Commented:
Thank you.  That saved me from lot's of frustration.  Didthe trick.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now