Solved

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

Posted on 2013-12-11
7
2,049 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

Industry Leaders: 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!

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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