Is it bad to have a large GLOBAL.ASA file?

M

michaaal

It seems to me that I generally use two types of Functions:

Type #1-Ones that any page on my site might use
Type #2-Ones that only a single page would ever use

Logically, it seems that I should put the Type #1 functions in the
GLOBAL.ASA file and the Type #2 functions in the pages that use them. I
would like to, however, just go ahead and include ALL of my functions in the
GLOBAL.ASA file.

Comments on this? Is this a good idea?
 
K

Ken Schaefer

Why don't you put your functions into include files?

Cheers
Ken


: It seems to me that I generally use two types of Functions:
:
: Type #1-Ones that any page on my site might use
: Type #2-Ones that only a single page would ever use
:
: Logically, it seems that I should put the Type #1 functions in the
: GLOBAL.ASA file and the Type #2 functions in the pages that use them. I
: would like to, however, just go ahead and include ALL of my functions in
the
: GLOBAL.ASA file.
:
: Comments on this? Is this a good idea?
:
:
 
A

Atrax

I
would like to, however, just go ahead and include ALL of my functions in the
GLOBAL.ASA file.

but you're saying you want them to be available throughout the app? this
is the wrong approach to take there - global.asa runs just once per
session, and code inside it isn't available to your ASP scripts

have you thought about using Windows Script Components to store and use
commonly-used functions?




________________________________________
Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

newsflash : Atrax.Richedit 1.0 now released.
http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top