Name

UserLanguages

Synopsis

stringArray = Request.UserLanguages

Returns a sorted String array containing the list of languages supported by the client.

Parameters

stringArray

A String array variable to receive the list of client-supported languages.

Example

See the example for the UserHostAddress property.

Notes

To test this property, you can set support for additional languages in your browser.

  • In Internet Explorer 6, select Internet Options... from the Tools menu. On the General tab of the Internet Options dialog, click the Languages... button. Use the Language Preference dialog to add, remove, or move languages up or down on the list of preferred languages.

  • In Netscape Navigator 6, select Preferences... from the Edit menu and then select the Languages node in the lefthand tree view. Use the options on the right to add, remove, or move languages up or down on the list.

Now if you browse a page containing the code in the UserHostAddress example, all languages you select will be listed in the order you chose.

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.