Monday, December 17, 2007

How to change local identifiers that define the webserver's locale.

How to change local identifiers that define the webserver's locale.

- Normally, the ASP program will use the information of webserver's local identifiers, which included language, country, culture, and conventions.

- Session object has one property that can allow us to change the local identifiers - LCID:

<%

Session.LCID = 1033 'Set LCID for standard US english

Response.write ("The format date (standard US english) is " & Now() & "
")

Session.LCID = 1049 'Set LCID for Russian

Response.write ("The format date (Russian) is " & Now() & "
")

%>



No comments: