Using CultureInfo for Globalization/Localization of an Asp.Net Applictation
Globalization is the process of making the application able to handle different culture and regions, while localization is the process of customization of the application for a specific culture and region. You use resource files (.resx) to localize the resources in your application. You use classes in System.Globalization namespace to make your application culture aware. The main class in Systme.Globalization namespace is the CultureInfo class. It contains many methods and properties to identify different cultures and configure your application to use a specific culture. You use System.Threading.Thread.CurrentCulture and System.Threading.Thread.CurrentUICulture to configure your application to use a specific culture setting. So how do you set which culture to use with your application? The System.Threading.Thread.CurrentCulture property is used to set a specific culture for the application. This property mainly defines how the application will format the datetime st...