ASP.NET(vb.net) Session.LCID() - Session Object - Session.LCID() : The LCID property specifies how dates, times, and currencies are formatted. Locale identifiers (LCID)s are not the same for each geographical locale. Some locales format dates as YY-MM-DD, and some format dates as MM-DD-YYYY.The LCID property is read/write.
ShotDev Focus:
- ASP.NET(vb.net) Session.LCID() - Session Object
Example
AspNetSessionLCID.aspx
<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Response.write ("SessionID = " & Session.SessionID() &"<br><br>")
Response.write("Default LCID = " & Session.LCID & "<br>")
Response.write("Date Format = " & Date.ToDay() & "<br>")
Response.write("Currency Format = " & FormatCurrency(100) & "<br><br>")
Session.LCID = 1033 '*** Thailand Zone ***'
Response.write("English - United States LCID = " & Session.LCID & "<br>")
Response.write("Date Format = " & Date.ToDay() & "<br>")
Response.write("Currency Format = " & FormatCurrency(100) & "<br><br>")
End Sub
</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form runat="server">
</form>
</body>
</html>
Screenshot

