Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-12-11
7
Medium Priority
?
2,313 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
  • 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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 2000 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

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.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

926 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