Advertisement

07.22.2008 at 06:23PM PDT, ID: 23587134
[x]
Attachment Details

ASP.NET - Using classes from class files in the App_Code folder

Asked by josephdaviskcrm in Microsoft Visual C#.Net, Programming for ASP.NET, .NET Framework 2.x

I've created a class file and stuck it into the App_Code folder of my website.  I was under the impression that I should just be able to access it by typing the name of the class and accessing one of its methods.  That obviously isn't the case?  Do I need to include it somehow?  Can that be done in the web.config folder?  Also, I am aware of the fact that a class needs to be static in order for you to run it's methods without needing to instantiate it.  I've declared the class in this manner:

public static class Database
{
...
...
...
}

Is this correct?Start Free Trial
 
 
[+][-]07.22.2008 at 07:00PM PDT, ID: 22065446

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, Programming for ASP.NET, .NET Framework 2.x
Sign Up Now!
Solution Provided By: naspinski
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628