.Net Framework, Asp.net, Ado.net, .Net Remoting, .Net Webservice, SQL, XML, XSLT, WCF, WPF, WWF NHibernate, Ajax, Jquery, DHTML

Ado.netAsp.Net 2.0SQLC-SharpXMLFrameworkIISXMLWebServiceArchitecture
UMLProject ManagementSDLCMethodologiesDesign PatterenOOPWCF.Net RemotingWWF
MVPMVCSilver LightN-HibernateAjaxJ-QuerySEO-MarketingSite MapPhp

Cultures in .net

Globalization in .netCulture in .netLocalization in .net
Resource file 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;

Leave your comment.
Name
Email
Comments
Tell Us3530+5 =

Reduce your Dialy IT Cost, Consult with us
Stay healthy in recession

Advertisement
Sponsored by

Privacy Policy ©2009 ETG Consultancy, All Rights Reserved Terms & Conditions
Asp.net, Ado.net, .Net Remoting, .Net Webservice, SQL, XML, XSLT, WCF, WPF, WWF NHibernate, Ajax, Jquery, DHTML