ASP  «Prev  

Summary of the ASP Server Object

Server Summary Server.property|method(variable)
Collections
No collections defined--
Events
No events defined--
Methods
CreateObject Creates new objects; usually used to create component instances.
HTMLEncode Encodes plain text into HTML encoding, for example, changing the character < into <.
MapPath You give MapPath() the virtual path, and it tells you the actual physical path on the server.
URLEncode Translates any string into a URL-encoded string.
Properties
ScriptTimeoutHow long (in seconds) does a script have to run (not counting time running components) before the server kills it?

Server object

A collection of methods provided by the webserver.

Server.CreateObject method

Creates an instance of a COM server component.
Usage: Set obj= Server.CreateObject(progid)
Details: This method creates and returns a COM object specified by progid.
Important: Using Server.CreateObject rather than a language construct (like CreateObject(progid) in VBScript, new ActiveXObject(progid) in JScript, or $Win32::OLE->new(progid)in PerlScript) allows IIS to manage the object, by handling concurrency, termanation, etc.