Partager via


Processing Directives (Compact 2013)

3/26/2014

Windows Embedded Compact–based ASP supports four ASP processing directives: Language, Codepage, LCID, and VerboseErrorMessages. Attempts to use other identifiers result in an error.

Unlike IIS, Windows Embedded Compact-based ASP does not check to make sure that the Preproc directive line is the first line of the ASP page. Also ASP does not check to see if there is only one Preproc directive line per file. If multiple ASP processing statements are included in one file, ASP uses the values in the first directive line and treats the remaining ASP processing directives as commands in the primary scripting language. Multiple ASP processing statements in a single file cause a parse error, but it might not be immediately obvious that the additional Preproc directive lines caused the problem.

It is possible to set site-wide default settings for the ASP processing directives in the registry. These values override the default ASP settings. The registry settings and ASP default settings are overridden on a requested ASP page if there is an ASP processing line on the page.

HKEY_LOCAL_MACHINE\Comm\HTTPD\ASP is the protected registry key for the default ASP settings. The following table shows the named values for the protected registry ASP configuration parameters.

Name

Type

Description

Language

REG_SZ

Default set to VBScript. A string that is equal to either "JScript" or "VBScript", depending on which language will be used.

Codepage

REG_DWORD

A DWORD that is equal to the code page to use. If this value is not set and not specified as a processing directive, ASP assumes it is working with ANSI strings.

LCID

REG_DWORD

A DWORD that is equal to the LCID to use. If this value is not set and not specified as a processing directive, ASP uses the local default.

VerboseErrorMessages

REG_DWORD

A DWORD that sets the level of detail of the error message displayed. Set to 0 to display a "Parse error in Script." error message. Set to 1 to display a detailed error message to the user. The default value is 1.

See Also

Concepts

Active Server Pages Application Development
Web Server Implementation Details