Session Current locale ID (VB.net) : Session Local ID « Session Cookie « ASP.Net






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>

           
       








Related examples in the same category