web 2.0

ASP.NET(vb.net) Session.LCID() - Session Object

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

ASP.NET(vb.net) Session.LCID() - Session Object
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.