

The class is still “not defined” in my aspx.vb code, even after I rebuild everything.

It is very easy, just add the new class from 'Add New Item'.
APPCODE FOLDER IN ASP.NET CODE
if you create a class, it will ask you if you want to add it on a App code folder. The same thing is happening for my DatabaseFunctions class in DatabaseFunctions.vb in App_Code. in VS 2010, you need to create a solution, then right-click -> add new website, then when you add classes, linq2sql etc, vs will create the appcode folder for you. It doesn’t work when I “add existing item” and specify the similar older project’s class file, either.ĥ. I open that new file and paste the code in from the similar project’s class file. I then right-click on this folder, click “Add”, click “Class”, and name it clsXXX.ģ. I click on the Project, click “Add”, click “New Folder”, and name it App_Code.Ģ. That VB code has “Dim MyXXX As New clsXXX”, which of course gives a message “Type clsXXX is not defined”.ġ. I right-clicked from the Designer View, clicked View Code, and pasted some VB code in, directly from the similar project (as a starting point). I pasted some HTML in from a similar project.Ĥ. I right-clicked on the level below the Solution level in Solution Explorer – is this still called the Project level?, clicked Add New Item, and added a Web Form.ģ. I clicked File / New Project, and selected “ASP.Net Web Application”.Ģ. In a nutshell: in my aspx.vb code, when I reference my classes that are in the App_Code folder, they’re “not defined”.ġ. I’ve found a fair number of people asking about this on various forums, but no resolutions, and would be pathetically grateful for any help. However, now I’m doing a new VS2005/ASP 2.0 project, and have a mystifying error. I have done several VB.Net/ASP.Net 2003 projects, and I did 98% of a VS2005/ASP 2.0 project that a co-worker initially laid out a few screens for.
