Localization Demo

This example shows how changing the preferred Language option in your web browser preferences changes the default language display when you first view this page.

You can change your language preferences in your web browser settings easily. Just click on Tools | Options | Languages.

In some cases the Culture and UICulture selection defaults chosen by auto-detection might not be convenient for the user (e.g. a Spanish-speaking user using a computer in a Chinese Internet café). In these cases Web applications need to give users the option to change the displayed language and/or cultural preferences. The following sample shows how to build a DropDownList control that lists all the available languages. It changes the language according to the selection in the drop-down and stores the selection using the new ASP.NET v2.0 Profiles feature.

Change Language: