Introduction To The GLOBAL.ASA For ASP Programmers
(Page 1 of 4 )
I spent quite a bit of time as an ASP programmer before I learned about the GLOBAL.ASA file. Like many others, I learned ASP the old fashioned way. Already familiar with Visual Basic, the leap to VBScript was not difficult. Then I took a look at some sample ASP code, starting doodling with it, and next thing you know, I'm an ASP programmer.
In my time writing ASP, I’ve designed and delivered some pretty complex systems for both intranet and Internet usage. There were some challenges that I ended up solving quite creatively, but could have been much easier to code had I been “in the know” about the GLOBAL.ASA file.
So, to help those of you just learning ASP, or even those who learned it the same way I originally did, I’ve put together this introduction as a tool to illustrate what the GLOBAL.ASA can do for you.
That being said, lets get down to what the GLOBAL.ASA file really is; an optional file that can contain declarations of objects, variables, and methods that can be accessed by any ASP page in an application. This file is stored in the root folder of your ASP application and must be named GLOBAL.ASA.
Now, I’m not going to be teaching any ASP in this article. The basic assumption is that you are familiar with ASP, and wish to learn more about using the GLOBAL.ASP file. There are many tutorials available freely on the Internet that will introduce you to ASP programming. Also, my examples will be supplied in VBScript, but any valid ASP scripting language may be used instead (JavaScript, Perl, etc).
Next: Inside the GLOBAL.ASA File >>
More ASP Articles
More By Rich Smith