
This guide is a aimed at being a quick overview to the Active Server Pages Application Object, its properties and its methods.
We all know what a computer application is. It's a program that accomplishes a specific task. In terms of web development, an application is no different with the exception of that a web application may (or may not), consist of a number of server scripted web pages. In the case of Active Server Pages, an ASP application is a set of ASP files that work together to perform a number of tasks.
The ASP Application object is used to tie these files together, and allow every ASP page in the application access to a set of global variables. It works in pretty much the same way as the ASP Session Object does, with the exception of that a variable within the Application object is not just accessible to any ASP web page in the application, but it is also shared by every user/session connected to the application. With Session variables on the other hand, all ASP pages have access to them but they are only valid for the user/session that created them.
The ASP Application Object should be used wisely, and used to hold information that will be common to a number of pages, such as database connection strings and urls of items such as shopping cart pages etc. This is beneficial because it means you only have to reference the appropriate variables on any page you need them, and when you change the contents of the variable it effects every page in the application, and in ever session automatically.
The ASP Application object only has two collections to speak of, and those are as follows:
There are relatively few methods for the ASP application object, all of which are listed below:
The ASP Application object has two events associated with it. Information about these events can be found in the ASP tutorial for using the Global.asa file.
Tutorial by Justin Kercher
2005.
This document may not be copied for use on another site.
Copyright© 2005.