Share Global.asa

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

Thanks,

Ron
rn5a [ Mo, 24 Dezember 2007 02:20 ] [ ID #1893316 ]

Re: Share Global.asa

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 <shrug>
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"
reb01501 [ Mo, 24 Dezember 2007 11:49 ] [ ID #1893321 ]

Re: Share Global.asa

"RN1" <rn5a [at] rediffmail.com> wrote in message
news:7f0ddb06-eaf5-42f4-8765-beee44fabb77 [at] 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
Anthony Jones [ Mo, 24 Dezember 2007 12:03 ] [ ID #1893324 ]
Webserver » microsoft.public.inetserver.asp.general » Share Global.asa

Vorheriges Thema: Int & Fix Functions
Nächstes Thema: Option Explicit