Microsoft .NET provides support for working with culture specific
information using the CultureInfo class in the System.Globalization namespace. Culture
information can be set both at the page level as well as at the application
level.
To set the Culture information at the page levels use the
following in the Page directive of the ASP.NET page.
Listing 1
<%@ Page language="C#" Culture="fr-FR"%>
This statement in listing 1 would ensure that the culture
information is applicable only for this particular page in the application.
To set the Culture information at the application level, use
the following in the Globalization section of the web.config file.
Listing 2
<configuration>
<system.web>
<globalization
culture="en-GB"
/>
</system.web>
</configuration>
This specification as shown in listing 2 in the web.config
file would ensure that the culture information is applicable throughout the
application.