web 2.0

ASP Session.LCID() - Session Object

ASP Session.LCID() - Session Object Gets or sets the locale identifier (LCID) of the current session.

ShotDev Focus:
- Locale identifier (LCID)

Syntax


<%
Session.LCID
%>

Example

asp_session_lcid.asp


<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Response.write ("SessionID = " & Session.SessionID() &"<br><br>")

Response.write("Default LCID =  " & Session.LCID & "<br>")
Response.write("Date Format =  " & date() & "<br>")
Response.write("Currency Format = " & FormatCurrency(100) & "<br><br>")

Session.LCID = 1033 '*** English - United States ***'
Response.write("English - United States LCID =  " & Session.LCID & "<br>")
Response.write("Date Format =  " & date() & "<br>")
Response.write("Currency Format = " & FormatCurrency(100) & "<br><br>")
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_session_lcid.asp

Screenshot

ASP & Session.LCID()

.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.