Active Server Pages Object Model
Although VBScript is a powerful, flexible scripting language when used to develop ASP applications, you can do relatively little with VBScript by itself. That is, most of the power and efficiency of ASP becomes available only when you use VBScript to access the Active Server Pages object model. In an ASP application, each of the objects in the ASP object model is globally available throughout your script; you don’t have to do anything special to instantiate ASP objects.
ASP includes six intrinsic objects, each of which are detailed in the following sections.
Application
An object whose collections and property values are shared across all instances of the application. (An ASP application , once again, is the entire set of files that can be accessed in a virtual directory and its subdirectories.) The Application object supports the members listing in Table 5.1.
Table 5-1. Members of the Application Object
|
Name |
Description |
|---|---|
|
Contents Collection |
Contains all application-scoped variables and objects added by script. |
|
Lock Method |
Locks the Contents collection, preventing other instances from
accessing it until it is unlocked. Its syntax is
|
|
OnEnd Event |
Fired when the last user session ends. |
|
OnStart Event |
Fired when the first user session starts. |
|
StaticObjects Collection |
Contains all application-scoped variables added by the
|
|
Unlock Method |
Unlocks the Contents collection so that other instances can access ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access