Yes, you can make them public static in global.asax.
However, this is not a good idea. It makes it
much more of a hassle if you choose to reuse that
method in another web application or in a different
environment such as a .NET Windows Forms
application or .NET Compact Framework application.
You really should stay consistant with your OOP layers
and not get lazy by just throwing code in your global.asax
all willy nilly.
--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net
Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp
<pa***@community.nospam> wrote in message
news:e9***************@TK2MSFTNGP15.phx.gbl...
Hi all,
Is it possible to have custom function/subroutines in global.asax? e.g.
DoMyWork(i as integer) etc etc. If yes, how can I access this code in my
.aspx pages? I know I can put this into a seperate dll in the bin
directory, but to keep it simple global.asax would be nice too..
TIA!