Active Server Pages implements classes that enable your component to access the properties and methods of the ASP built-in objects. The ScriptingContext class contains 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 |
Return one of the built-in object interfaces: Application, Request, Response, Server, or Session. | |
Call the methods and properties of the Application object. | |
Call the methods and properties of the Request object. | |
Call the methods and properties of the Response object. | |
Call the methods and properties of the Server object. | |
Call the methods and properties of the Session object. |
To use the ScriptingContext and built-in object interfaces in a Visual Basic component, you must load the Microsoft Active Server Pages Object Library (asp.dll) into your available references. This file is installed with the Active Server Pages feature in the directory \Inetsrv\Asp\.
For more information about the built-in objects see the Object Reference.
Note If you are using Microsoft® Visual Basic® 5.0, you should create your component as an ActiveX DLL and not an ActiveX Control.