ASP Objects: Request, Response, Session and Application

This section describes additional objects provided by ASP: Request, Response, Session and Application. Your server-side VBScript code will use those objects to convert static Web pages into Web-based applications.

ASP enabled Web server, like IIS, provides a number run-time objects as part of the server side scripting environment:

The following diagram illustrates the relations among the ASP objects:

Server
 |- Application X
 |   |- Session A            Client A
 |   |   |- Request #1  <---  |
 |   |   |- Response #1 --->  |
 |   |   |- Request #2  <---  |
 |   |   |- Response #2 --->  |
 |   |   |- ......            |
 |   |
 |   |- Session B            Client B
 |   |   |- Request #1  <---  |
 |   |   |- Response #1 --->  |
 |   |   |- Request #2  <---  |
 |   |   |- Response #2 --->  |
 |   |   |- ......            |
 |   |- ......
 |
 |- Application Y
 |- ......

Table of Contents

 About This Book

 Introduction of VBScript - Visual Basic Scripting Edition

 Variant Data Type, Subtypes, and Literals

 Arithmetic Operations

 Numeric Comparison Operations and Logical Operations

 String Operations - Concatenation and Comparison

 Variable Declaration and Assignment Statement

 Expression and Order of Operation Precedence

 Statement Syntax and Statement Types

 Array Data Type and Related Statements

 Array References and Array Assignment Statements

 Conditional Statements - "If ... Then" and "Select Case"

 Loop Statements - "For", "While", and "Do"

 "Function" and "Sub" Procedures

 Built-in Functions

 Inspecting Variables Received in Procedures

 Error Handling Flag and the "Err" Object

 Regular Expression Pattern Match and Replacement

 scrrun.dll - Scripting Runtime DLL Library

 Creating Your Own Classes

 IE Web Browser Supporting VBScript

IIS ASP Server Supporting VBScript

 What is ASP (Active Server Pages)?

 Static, Client-Side and Server-Side Scripting Pages

 Setting Up IIS to Run ASP Pages - asp.dll

ASP Objects: Request, Response, Session and Application

 ASP Object Example - Passing Values between Pages

 Interacting with External Applications - ActiveX Data Object (ADO)

 WSH (Windows Script Host)

 References

 PDF Printing Version