ASP.NET 2.0 and utility classes.
I'm working these days with ASP.NET 2.0 (actually 1.2) for
several reasons. As I already posted ASP.NET 2.0 don’t come
with building option inside VS.NET. ASP.NET compiles ASPX
files and code behind files while application called from
the first time. So if you add utility class to the project
no one will compile your utility class and you can't use it.
Even if you use Page Inherits attribute to set Page base
class to class inside your project, the page won't recognize
your base class at runtime. The only way I found out to add
classes is by creating class libraries and references them
from ASP.NET project. By the way the current version doesn't
support project reference from ASP.NET projects.
I hope I'm missing something, although I can't see what… And
if I don’t miss something I hope MS will add ability to add
classes into ASP.NET application. One might say that this
attitude better since ASP.NET just handles pages and all
other classes that hold logic and data must be outside
ASP.NET project. But still there are cases that you want
classes inside ASP.NET.