Help > Web Development > Reference > Scripting Objects > Server Object

Server Object

The server object represents the server's properties and methods.

Properties
ScriptTimeout Indicates the amount to time to allow the scripts to run before timing out.

Methods
CreateObject(class) Returns an instance of the server component.
Execute(script) Executes the given script file.
HTMLEncode(value) Applies HTML encoding to the given string.
MapPath(path)

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.

UrlEncode(value)

Applies URL encoding rules, including escape characters, to the string.  Used for encoding query string parameters.

UrlPathEncode(value)

Applies URL encoding rules, including escape characters, to the string.  Used for encoding path variables.

Escape(value)

Applies JavaScript escaping rules, including escape characters, to the string.

IfThen(cond, a, b) Conditional function: when cond is true, returns a, otherwise b.
XMLDateToDate Converts an XML formatted date and time string into a DateTime value.
DateToXMLDate Converts an DateTime value into XML formatted date and time string.

Remarks