Name
LCID —
Session.LCID (=
intLCID
)
Synopsis
The locale represents a user preference for how certain information is formatted. For example, some locales have dates formatted in the Month/Day/Year format. This is the standard U.S. locale. Each locale is identified by that locale's unique LCID, or locale ID. This code is defined in the operating system.
You can set the locale identifier for your script's content using the LCID property of the Session object. The LCID property represents the valid locale identifier that will be used to display dynamic content to the web browser.
Parameters
-
intLCID A valid 32-bit locale identifier.
Example
<% ' The following code demonstrates the use of the LCID property ' to temporarily set the locale identifier to Standard French. Dim intOrigLCID Dim intFrenchLCID intFrenchLCID = 1036 intOrigLCID = Session.LCID Session.LCID = intFrenchLCID %> ' +-----------------------------------------------------------+ ' | This text sent to the client browser will be formatted | ' | according to the rules set by the locale identifier for | ' | Standard French. For example, dates would be formatted | ' | using the Day/Month/Year format, instead of the U.S. | ' | standard Month/Day/Year. | ' +-----------------------------------------------------------+ <% ' The next line resets the LCID property: Session.LCID = intOrigLCID %>
Notes
Similar to the CodePage property in syntax, the LCID property allows you to set the formatting rules for times and dates, and it also ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access