How to display a control in culture different from content culture

Customer care manager

Juraj Ondrus asked on May 25, 2009 08:25

How to display a control in culture different from content culture (e.g. because of different DateTime format)

Correct Answer

Juraj Ondrus answered on May 25, 2009 08:25

You could change the culture of thread in the code behind. The code could look like this:

System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = ci;

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.