Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Server Object (IIS)

IIS 6.0

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

The Server object defines the following methods.

Method

Description

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.

The Server object defines the following property.

Property

Description

Server.ScriptTimeout

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

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Show:
© 2015 Microsoft