ASP.Net/Session Cookie/Session Local ID

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

Session Current locale ID (VB.net)

<%@ Page Language="vb" %>
<html>
   <head>
      <script runat="server">
         Sub Page_Load()
            Message.Text = "Current locale ID is: " & Session.LCID & "</br>"
            Message.Text &= "Current date and time is: " & DateTime.Now() & "</br>"
            Session.LCID = 1036 "France
            Message.Text &= "Current locale ID is: " & Session.LCID & "</br>"
            Message.Text &= "Current date and time is: " & DateTime.Now() & "</br>"
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>