Platform SDK: IIS SDK
      [IIS 5.0] [IIS 5.1] [IIS 6.0]

Server Object

You can use the Server object to access methods and properties on the server. Most of these methods and properties serve as utility functions.

Syntax

Server. property|method

Properties

Server.ScriptTimeout The amount of time that a script can run before it times out.

Methods

Server.CreateObject Creates an instance of a server component.
Server.Execute Executes an .asp file.
Server.GetLastError Returns an ASPError object that describes the error condition.
Server.HTMLEncode Applies HTML encoding to the specified string.
Server.MapPath Maps the specified virtual path, either the absolute path on the current server or the path relative to the current page, into a physical path.
Server.Transfer Sends all of the current state information to another .asp file for processing.
Server.URLEncode Applies URL encoding rules, including escape characters, to the string.

Requirements

Platforms: Windows 2000 with IIS 5.0 installed, Windows XP with IIS 5.1 installed, Windows Server 2003 family with IIS 6.0 installed

Platform SDK Release: February 2003
What did you think of this topic?
Order a Platform SDK CD