Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


type '' is not defined

Posted on 2013-12-11
Medium Priority
Last Modified: 2013-12-11
I added a new form to my web site and now I get the;

type '' 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.
Question by:CPOINT2000
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
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


Author Comment

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.

Author Comment

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

<%@ 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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?

Author Comment

ID: 39712602
web aplication.  

yes for example I have;

This happened in the past before, but I do not recall I how I resolved it.
LVL 29

Accepted Solution

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

Author Closing Comment

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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
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…

670 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