Server Directives

Set the script language, code page, or locale; or enable session or transaction.

Details

Language

Establishes the page's scripting language. VBScript is the default when IIS is installed, but the default language is configurable for each web application. JScript is an alternative language, available on all IIS servers. PerlScript, Python, and various other languages can also be installed and used, but can be somewhat slower than the lightweight (and less complete) VBScript or JScript.

EnableSessionState

True or False. Sessions identify a user connection. True is the default when IIS is installed, but the session state can be set independantly for each web application. The IIS server uses connection info, cookies, etc. to discern one user/connection from another. This is required to use the Session object.

Tip

Sessions incur some overhead, and should be disabled for servers or individual web applications in the server settings unless required.

CodePage

See Internationalization.

LCID

See Internationalization.

Transaction

One of Required, Requires_New, Supported, or Not_Supported. Determines whether a transaction will be initiated. With transactions enabled, the ObjectContext object becomes available:

SetAbort() method

Aborts the page's transaction.

SetComplete() method

The page declares that its part in the transaction is finished.

OnTransactionAbort event

Called when the transaction fails.

OnTransactionCommit event

Called when the transaction completes.