Request.UserLanguages : Request « I18N « ASP.NET Tutorial






<%@Page Language="VB" %>
<%@Import Namespace="System.Globalization" %>

<script runat="server">
   sub Page_Load(Sender as Object,e as EventArgs)
      lblMessage.Text = Request.UserLanguages(0).ToString
   end sub
</script>

<html><body>
   Your primary language is:
   <asp:Label id="lblMessage" runat="server"/>
</body></html>








22.5.Request
22.5.1.Request.UserLanguages
22.5.2.Get language resource file based on user language
22.5.3.Displaying a browser's language settings.