Hi. How can i change system culture that affects all pages(programmatically)? i saw this thread.
but i want to change culture in my Login page with this codes.
protected void btnChangeLanguage(object sender, EventArgs e)
{
Thread.CurrentThread.CurrentCulture = new CultureInfo("es");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("es");
}
Thread.CurrentThread.CurrentUICulture = new CultureInfo("fa-IR")
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("fa-IR")
My Culture Changed by top Code. I checked by this code.
MsgBox("Current Culture is " + CultureInfo.CurrentCulture.EnglishName)
but still our text and labels are english. (i have english resource and persian resource.)