Solved

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

Posted on 2013-12-11
7
2,123 Views
Last Modified: 2013-12-11
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
Comment
Question by:CPOINT2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 39712325
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
 

Author Comment

by:CPOINT2000
ID: 39712399
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
 

Author Comment

by:CPOINT2000
ID: 39712410
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 29

Expert Comment

by:Paul Jackson
ID: 39712574
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
 

Author Comment

by:CPOINT2000
ID: 39712602
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
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 39712615
Please try right-clicking the project in solution explorer and select 'Convert to Web Application'.
0
 

Author Closing Comment

by:CPOINT2000
ID: 39712726
Thank you.  That saved me from lot's of frustration.  Didthe trick.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question