Visual Basic Object Model

Active Server Pages (ASP) implement classes that enable your component to access the properties and methods of the ASP built-in objects. The ObjectContext object exposes methods that return an interface to one of the ASP built-in objects. Your component can use these interfaces to access the methods and properties of the built-in objects.

The following table lists the built-in object classes:

Class Use to
Application Call the methods and properties of the Application object.
ObjectContext Returns the built-in objects and provides methods used in transaction processing.
Request Call the methods and properties of the Request object.
Response Calls the methods and properties of the Response object.
ScriptingContext Returns the built-in objects: Application, Request, Response, Server, or Session.
Server Calls the methods and properties of the Server object.
Session Calls the methods and properties of the Session object.

To use the ScriptingContext and built-in object in a Visual Basic component, you must load the Microsoft® ASP Object Library (asp.dll) into your available references. This file is installed with the ASP feature in the \inetsrv\asp\ directory.

For more information about the built-in objects see Built-in ASP Objects Reference.

Note  If you are using Visual Basic 5.0, you should create your component as an ActiveX DLL and not an ActiveX control.