AspLCID Metabase Property
Applies To: Windows Server 2003, Windows Server 2003 with SP1
The AspLCID property specifies the default locale identifier (LCID) for an application. LCIDs define how dates, times, and currencies are formatted. LCIDs are not the same for each geographical locale.
Override this setting at the page level by using the ASP page directive, @LCID for literal strings, or one of the LCID properties of the ASP built-in Response or Session objects for dynamic data. If this property is set to 0 at any node, the system default locale (LOCALE_SYSTEM_DEFAULT) is inferred. Setting AspLCID changes the locale for both the ASP application and the scripting engine. Using the Microsoft Visual Basic Scripting Edition (VBScript) function setLocale() only changes the locale for the scripting engine.
Note
The locale group has to be installed on the Web server before its locale identifier can be specified in a Web page or application. Use the Regional and Language Options item in Control Panel to install locale groups.
Attribute Name | Attribute Value |
---|---|
XML Data Type |
DWORD |
WMI Data Type |
SINT32 |
ADSI Data Type |
DWORD |
ABO Data Type |
DWORD |
ABO Metabase Identifier |
MD_ASP_LCID |
Attributes |
INHERIT |
Default Value |
0 |
MetaFlagsEx |
CACHE_PROPERTY_MODIFIED |
User Type |
ASP_MD_UT_APP |
ID |
7042 |
Configurable Locations
You can configure this property at the following locations in the IIS metabase.
Metabase Path | IIS Admin Object Type |
---|---|
/LM/W3SVC/n/ROOT /LM/W3SVC/n/ROOT/virtual_directory_name |
IIsWebVirtualDir |
/LM/W3SVC/n |
IIsWebServer |
/LM/W3SVC |
IIsWebService |
/LM/W3SVC/n/ROOT/physical_directory_name /LM/W3SVC/n/virtual_directory_name/physical_directory_name |
IIsWebDirectory |
Code Example
For general code examples, see Code Examples to Configure Metabase Properties.