Server Object
All Methods
All Objects
All Properties
METHOD: Server.CreateObject
Server.
CreateObject
(ObjectID)
The
CreateObject
method is probably the most widely used and the most important method available through the Built-in Actice Server Pages Objects. It allows you to instantiate the components of a script, or in different terms, create an instance of other objects. As a direct consequence, you can use and access any collections, events, methods, and properties associated with these objects.
There is one mandatory argument.
ObjectID
The
ObjectID
argument specifies the type of object to be created.
The following code creates a connection to a database:
Code:
<% Set myconn =
Server.CreateObject
("ADODB.Connection") %>
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information