Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











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 Active 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-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information