Don't use server side includes in ASP.NET. They work, but are only there
for backwards compatability. They're also very inefficient.
As for as common functionality, create a seperate class that represents this
functionality. If the methods are static, then that's fine.
To make this available to your pages, you'll need to compile this class into
an assembly and drop it in the ~/bin of your application. If you're using
VS.NET then simply add a reference to your helper assembly. If you're using
ASP.NET 2.0 then you don't need to make this a seperate assembly and can
simply drop the source files into the App_Code folder.
-Brock
DevelopMentor
http://staff.develop.com/ballen Hi all,
I am still teething on ASP.NET after flogging ASP for a number of
years.
What approach is recommend for storing commly used functions ?
In classic asp, normally these unrelated helper functions were in a
'include
file'.
I have thought of writing a class, but in this instance the functions
i am
refering to are not related and seem to be
more procedural oriented rather than OOP.
Any thoughts?
Cheers,
Adam