OnStartPage

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 before the server processes the 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.

For more information about the built-in object interfaces, see C++ Interfaces, Java Class and Interface Definitions, or Visual Basic Object Model, depending on the programming language you intend to use.

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