using System.Globalization; using System.Threading; private void Page_Load(object sender, System.EventArgs e) { Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(Request.UserLanguages[0].ToString()); Thread.CurrentThread.CurrentUICulture = new CultureInfo(Request.UserLanguages[0].ToString()); lblToday.Text = Today; lblMessage.Text = "Culture Info Display Name " + Thread.CurrentThread.CurrentCulture.DisplayName; }
No comments:
Post a Comment