Changing the default scripting language at the server level
The default scripting language for ASP is VBScript. However, you can change the scripting language at three levels: the server level, the page level, and the function level. Changing the default at the server level affects all applications that run on the server and requires a trip to Windows NT's registry.
To change the default to JScript, use Windows NT's registry editor to open the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\ASP\Parameters
Then, change the DefaultScriptLanguage entry from VBScript to the new default, JScript. Finally, you must stop and restart IIS for the changes to take effect. When you're finished, all scripts on the server will be processed by the JScript engine unless otherwise specified at the page or function level.
No comments:
Post a Comment