ASP Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 5.00

Introduction of ASP Objects

This section introduces ASP built-in run-time objects - 5 run-time objects are provided by the ASP programming interface: Request, Response, Server, Application, and Session.

ASP enabled Web server provides a number of built-in run-time objects as part of the server side scripting environment:

  • Request: An object holding information the client sends to the server as an HTTP request.
  • Response: An object holding information the server sends to the client as an HTTP response.
  • Server: An object holding information common to running virtual directories.
  • Application: An object holding information common to all running HTTP sessions under a single virtual Web directory.
  • Session: An object representing a sequence of HTTP requests and responses from one client system.

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
 |- ......

Last update: 2002.

Table of Contents

 About This Book

 ASP (Active Server Pages) Introduction

 IIS (Internet Information Services) 5.0

 MS Script Debugger

 VBScript Language

ASP Built-in Run-time Objects

Introduction of ASP Objects

 "request" Object - Receiving Data from Client

 "response" Object - Sending Data to Client

 "server" Object - Sharing Data across Applications

 "application" Object - Sharing Data within an Application

 "session" Object - Sharing Data across ASP Pages

 ASP Session

 Creating and Managing Cookies

 Managing Sessions with and without Cookies

 scrrun.dll - Scripting Runtime DLL

 Managing Response Header Lines

 Calculation Speed and Response Time

 ADO (ActiveX Data Object) DLL

 Working with MS Access Database

 Guest Book Application Example

 References

 PDF Printing Version

Dr. Herong Yang, updated in 2010
Introduction of ASP Objects