473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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

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?
Jul 19 '05 #1
2 2074
Why don't you put your functions into include files?

Cheers
Ken
"michaaal" <re******@verizon.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
: 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?
:
:
Jul 19 '05 #2
> 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/infinitemonk...trax.RichEdit/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: doug | last post by:
How can I parse a large XML file that is to large for memory? I am currently using php 5.0.3 and the libxml parser, I would like to read it incrementally from a file, but the parser gets the...
0
by: Grant | last post by:
Hi, Could any body tell me what is the problem? I wrote a DTS application which will download a large file (about 100M) and bulk insert many records into the database (about 300'000 each time),...
13
by: Chris Smith | last post by:
'Morning, Within the next few months, I'm going to embark upon a comparatively rather large base of JavaScript code to be called from a web browser environment. Not too awfully huge, but...
2
by: xain | last post by:
HtmlString includes a web page, and soon it is converted to Html file. In the web page, they are images, and some of them are large. They are so large, in fact they are going to destroy my Tables,...
19
by: Hal Styli | last post by:
Hello, Can someone please help. I need to use a large array and I'm not sure when one should use (A) and when one should use (B) below:- #define MAX 10000000 (A) int x;
10
by: Kleenex | last post by:
Reason: I am working on an embedded project which has very limited memory (under 512 bytes, 60 or so of which is stack space), which translates into limited stack space. In order to save on stack...
5
by: ad | last post by:
The Global.asax is code-inside with default. How to change Global.asax to code-behind?
10
by: erin.sebastian | last post by:
Hello Everyone, I have code that uploads files in asp. It seems to be working however on files > 200kb it bombs and i don't know why. Does anyone have any idea of why this would occur and what i...
2
by: Michael Tissington | last post by:
How do I specify the CodeFile for my Global.asax file ? According to the documentation I can use the CodeFile attribute with Application, however when I try to use this I get an error saying that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.