Share Global.asa

Share Global.asa

am 24.12.2007 02:20:35 von rn5a

Can more than one application (on the same server) share the same
Global.asa file? If not, then why?

Thanks,

Ron

Re: Share Global.asa

am 24.12.2007 11:49:38 von reb01501

RN1 wrote:
> Can more than one application (on the same server) share the same
> Global.asa file?

No.
http://msdn2.microsoft.com/en-us/library/ms525316.aspx

> If not, then why?
Because that's the way it is
http://msdn2.microsoft.com/en-us/library/ms525965.aspx

You should bookmark this:
http://msdn2.microsoft.com/en-us/library/ms524664.aspx

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Re: Share Global.asa

am 24.12.2007 12:03:43 von Anthony Jones

"RN1" wrote in message
news:7f0ddb06-eaf5-42f4-8765-beee44fabb77@s8g2000prg.googleg roups.com...
> Can more than one application (on the same server) share the same
> Global.asa file? If not, then why?
>

I've never tried it but one way that would happen is if you create two
applications to whose physical home directory is the same physical folder.
They would clearly share the Global.asa as well as whatever else is in the
folder.

Personally if I had code I wanted shared by multiple applications I would
place that code in include files in a folder, add the folder to each
application as a virtual folder then use #include virtual="..." to include
this library code in whatever asp code files needed them.

Bear in mind in neither case would the two applications share values stored
in the application object (just in case you might be thinking that.)

--
Anthony Jones - MVP ASP/ASP.NET