When a user requests a Web page in an ASP application, the server calls the OnStartPage method for all objects (except those with application scope) on that page. This call occurs the first time the object is accessed by a script.
You can use the OnStartPage method to use the ScriptingContext class to retrieve pointers to the built-in objects. Your object can then use the built-in objects to access its collections, methods, and properties. Using OnStartPage and ScriptingContext to retrieve and use built-in objects and their methods, instead of passing built-in objects as parameters, makes your object easier to use in ASP scripts. However, it is recommended that your component access the built-in objects by using the ObjectContext as described above. When you use the OnStartPage method of accessing the built-in objects your component does not obtain ObjectContext which means it will not be able to take full advantage of the services offered by COM.
For more information about the built-in object interfaces, see C++ Interfaces, Java Classes, or Visual Basic Object Model, depending on the programming language you intend to use.
For more information about the built-in objects, see the Built-in Object Reference.