The need of setting culture and UI culture comes when your application supports globalization.
The Culture property determines the culture dependent functions like date, number, currency formatting etc..
The UI Culture property determines the resources that are to be loaded for the page.
The culture values are set using Internet standard strings that identify the language (example: ‘en; for english, ‘es’ for spanish etc..) and culture (example: ‘US’ for United States, ‘DE’ for Germany etc..)
so valid value for culture properties could be:
en-US
en-GB
etc..
Various ways for settings in an Application:
1. To set the culture and UICulture in ASP.NET, you can put the below code in your web.config file:
<globalization uiCulture="en-US" culture="en-US" />
So it can be environment specific.
2. To set for a specific/individual page:
<%@ Page UICulture="en-US" Culture="en-US" %>
0 Comments.