.Net Framework, Asp.net, Ado.net, .Net Remoting, .Net Webservice, SQL, XML, XSLT, WCF, WPF, WWF NHibernate, Ajax, Jquery, DHTML
ETG Consultancy
Cultures in .net
How we can get the cultures in .net ?
use the following code
using System.Globalization;
CultureInfo[] arrCultureInfo = CultureInfo.GetCultures(CultureTypes.SpecificCultures);
In Cultures list 166 items found
How we can get the current cultures in .net ?
Just put this this code in server
System.Threading.Thread.CurrentThread.CurrentUICulture.ToString()
System.Threading.Thread.CurrentThread.CurrentCulture.ToString()
As you can see the result
UICulture = en-US
Culture = en-US
Can I set the current cultures in .net ?
Yes, you can change the culture as per your need. look at the code below.
CultureInfo culture = new CultureInfo.CreateSpecificCulture("en-GB");
System.Threading.CurrentThread.CurrentCulture = culture;
System.Threading.CurrentThread.CurrentUICulture = culture;
Asp.net, Ado.net, .Net Remoting, .Net Webservice, SQL, XML, XSLT, WCF, WPF, WWF NHibernate, Ajax, Jquery, DHTML