Sorry dont know any but it is really simple.
Basically, start a new web app as you would normally.
Code your classes that you want everything to have access to, set to release
mode and compile.
The bin directory will hold a dll file. That dll file is the compiled
dynamic link library of those classes.
Now to include that dll go to your main project and on the right pane it
says references.
Right clik on that and i think it says add reference or something similar.
Choose this.
Now in the subsequent window browse for the dll and select it, say ok and
voila it has been added as a reference (i believe it also copies the dll
into your bin app of your current application for you as well but dont quote
me on that)
Now say your dll had a class in it in a namespace called yourNamespace and a
class called MyClass. You simply add this at the top of your page:
using yourNamespace;
and in your code you can put:
MyClass _myObj = new MyClass();
And access it as usual.
Hope that is all clear, i wrote this from memory so i hope i havent missed
any steps, failry self explanatory. Very neat way of adding global code and
in my opinion the way to do it.
--
Dan
"Chattanooga" <ro***@gmx.at> wrote in message
news:pe********************************@4ax.com...
On Fri, 13 Jan 2006 10:52:43 -0000, "Dan" <dv*******@aol.com> wrote:
Personally i make functions for any global activity in a separate project
and then compile to make the dll. Then add the resulting DLL as a
reference
in your projects that you want to use them.
that way you can build up a complete class library that is separate from
the
sub projects that use it without the need for a global aspx page holding
them all.
hi,
thanks for the hint, is there a link that describes this process in
any detail?
tia,
Christian