asp.net.ph

Skip Navigation LinksHome > ASP.NET Applications > ASP.NET Globalization and Localization > Using Resources in ASP.NET Web Pages

Using Resources in ASP.NET Web Pages

ASP.NET Web Applications   ASP.NET Globalization


Resources are used to specify localized property values for controls on a page.

Once you have created resource files for the languages you intend to support, you can obtain the resource entries to localize control property values on a page either

  • declaratively, by using resource expressions, or
  • programmatically, by using code.

The following examples show how declarative syntax can be used to access resources.

Using Implicit Resource Expressions
Run Sample | View Source
Using Explicit Resource Expressions
Run Sample | View Source

The following examples show how resources can be accessed programmatically.

Using Typed Resources
Run Sample | View Source
Using Resource Methods
Run Sample | View Source

Let us now briefly explore how each is done.

More ...
Back to top


© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note