Referencing Classes in ASP.NET 2.0
●
Permalink
●
suggest edit
I was reading a list response by Joteke (Teemu Keiski) earlier about referencing a class in an ASP.NET 2.0 project. In ASP.NET 2.0, if your class is in a code file in the App_Code folder, you do not need to include the assembly in the page directive in the page code. Also, if you are referencing a class in the web.config, you no longer have to reference the “class library name, class name” if the class file is in the App_Code
folder. All files in the App_Code
folder will be pre-compiled and will use the same class library name as the IL pulled from the rest of the project uses.