Home   |   QuickStart Welcome   |   ASP.NET   |   Web Services   |   How Do I...?   
  |   I want my samples in...      

ASP.NET 2.0 Quickstart Tutorials

Internationalizing Your Application

What's New in 2.0

  • Auto Detection of Browser Language - You can easily adapt your application's behavior to the user's culture by determining the language of the requesting browser.

  • Declarative Localization Expressions - Declarative resource expressions allow you to make your application multilingual without manually writing code to retrieve and substitute resources into your pages. You simply define a resource substitution using the new expression syntax in ASP.NET 2.0.

  • Generating Local Resources - ASP.NET 2.0 supports the standard resx file format to automatically generate resources at runtime, Developers can also provide alternative sources for localization resources through extensibility. Visual Web Developer includes support to easily generate application resources as well.
This section discusses these and other internationalization features in ASP.NET 2.0.

The web since its inception had worldwide reach. Users have different cultural expectations and speak different languages. Learn in this Quickstart how powerful new ASP.NET v2.0 features make it easier to adapt you web application to different countries, regions and markets.

In the Culture-sensitive Formatting section learn how browsers communicate their language preferences to the server. Learn how you can use auto-detection functionality in ASP.NET v2.0 to use this for date and number formatting that is appropriate for the user.

The Localization section shows how a new declarative expressions in markup allow to use .NET Framework resources without coding both for resources that are defined for a local page as well as resources shared by the whole application. The section also explains how to use resources in code if necessary as well as using the auto-detection functionality to determine the language of the content that is presented to the user. Lastly a sample in the section shows how to let the user choose a language and persist this choice in the user preferences using the Profile feature.

Users may not always be using browsers that support Unicode. The Encoding section explains how your applications can be configured for this case.

The sample used to demonstrate these different internationalization features is a currency calculator. It is gradually improved from an application that first only supports culture-sensitive formatting to a fully multi-lingual, personalized site available in English, French, German, Japanese, Spanish and Arabic.