How to use application resource files (.resx) to efficiently create a localizable ASP.NET Web application (917414)
The information in this article applies to:
- Microsoft ASP.NET 2.0
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft ASP.NET (included with the .NET Framework) 1.0
- Microsoft ASP.NET (included with the .NET Framework 1.0)
INTRODUCTIONYou can use application resource files (.resx) to efficiently create a localizable Microsoft ASP.NET Web application. By using resource files, you can store localized values for controls. The localized values are based on a user's language and culture. When you store localized values in resource files, ASP.NET can select the appropriate value at run time. A localizable ASP.NET Web application must contain the following: - A resource file (.resx) to store the localized values
- Coding to associate specific controls with specific localized values
This article contains an implicit location sample that uses a combination of designer resources and editor resources to produce a resource file. This article describes how to use the resource file to create a localizable ASP.NET Web application that you can view in two languages. The method in this article uses Microsoft Visual Studio 2005 to populate the resource file by using values that are based on control properties for each page. Note It is best to generate the resource files after you create the ASP.NET Web application and after you add controls to the page. REFERENCESFor more information about resources in ASP.NET Web applications, visit the following Microsoft Developer Network (MSDN) Web site: For more information about globalization, visit the following Microsoft Web site:
For more information about how to work with Web resources in ASP.NET 2.0, click the following article number to view the article in the Microsoft Knowledge Base:
910442
Working with Web resources in ASP.NET 2.0
For more information about globalization issues in Active Server Pages (ASP) and in ASP.NET, click the following article number to view the article in the Microsoft Knowledge Base:
893663
Globalization issues in ASP and ASP.NET
For more information about how to set culture information programmatically in ASP.NET, click the following article number to view the article in the Microsoft Knowledge Base:
306162
How to set current culture programmatically in an ASP.NET application
Modification Type: | Major | Last Reviewed: | 6/20/2006 |
---|
Keywords: | kbhowto kbinfo KB917414 kbAudDeveloper |
---|
|
|
©2004 Microsoft Corporation. All rights reserved.
|
|