Platform SDK: IIS SDK
      [IIS 5.0] [IIS 5.1] [IIS 6.0]

ASP Built-In Objects Reference

Using Active Server Pages (ASP) built-in objects, you can access all available information regarding the Web server, the user who is accessing a Web page, the Web application that contains the Web page, and the fields in the HTTP request and response stream. You can access this information from a Web page, a Component Object Model (COM) component, or an Internet Server API (ISAPI) application.

Language Method
ISAPI application Use the C++ interfaces for the ASP built-in objects.
C++ COM component Use the C++ interfaces for the ASP built-in objects.
Java application Use the Java classes for the ASP built-in objects.
Visual Basic (VB) component Use the COM+ ObjectContext object by calling GetObjectContext. This requires a project reference to the COM+ Services Type Library and the Microsoft Active Server Pages Object Library.
Script component (scriptlet) Use the COM+ ObjectContext object by calling the GetObjectContext method of the MTxAS.AppServer object.
ASP script using VBScript or JScript Use the ASP built-in object classes listed later in this topic.

The ASP built-in objects are organized by the type of information they contain. If you are developing an ASP script, use the object classes listed in the following table:

Class Purpose
Application Object Stores information related to the entire Web application, including variables and objects that exist for the lifetime of the application.
ASPError Object Stores information about an error condition.
ObjectContext Object A wrapper for the COM+ ObjectContext object, which provides methods used for transaction processing.
Request Object Stores information related to the HTTP request. This includes forms, cookies, server variables, and certificate data.
Response Object Stores information related to the server's response. This includes displaying content, manipulating headers, setting locales, and redirecting requests.
ScriptingContext Object In a component, the ScriptingContext object returns references to the ASP built-in objects; however, this is an obsolete and unsupported method. You should use the COM+ ObjectContext object to return references to the ASP built-in objects. For more information, see Accessing ASP Built-In Objects from Components Reference.
Server Object Provides methods for various server tasks. With these methods you can execute code, get error conditions, encode text strings, create objects for use by the Web page, and map physical paths.
Session Object Stores information related to the user's session, including variables and objects that exist for the lifetime of the session.

See Also

Requirements

Platforms: Windows 2000 with IIS 5.0 installed, Windows XP with IIS 5.1 installed, Windows Server 2003 family with IIS 6.0 installed

Platform SDK Release: February 2003
What did you think of this topic?
Order a Platform SDK CD