Application Object

This is used to store variables and object references that are available to all the pages that a user opens.

Collections

Collection description
Contents a collection of all the variables and their values stored in the Application object that are not defined in the <OBJECT> tag
StaticObjects this is a collection of all the variables that are defined in an <OBJECT> tag

 

Properties

property description
Contents.Remove removes a named variable from the Contents collection
Contents.removeAll() removes all variables from the Contents collection
Lock() locks the Application object so only the current ASP page has access to the contents .Prevents more than one user altering values at the same time
Unlock() unlocks the ASP pages lock on the Application object

 

Methods

method description
onStart this occurs the first time a user requests one of the pages in an application . This is used to initialize variables and create objects and run other code
onEnd this occurs when the ASP application ends i.e when the server shuts down. All variables which existed in the Application are destroyed here.

 

back to tutorials

Sponsors

Register your Domain Today!

get .TV domains

Send an Evite Invite today!

Aladdin Systems Software