Last post Dec 22, 2008 09:07 PM by Nai-Dong Jin - MSFT
Dec 19, 2008 04:28 AM|rizasirman|LINK
I want to design a simple site that works for three languages (English, Turkish, and German)
I'm using Global Resources.. Everything is fine on single page (I have done similiar to video tutorail of Globalization on "How do i"). But if user redirects to another page language selection is being lost. How can keep the culture selection of current
user? Here is the code
Session.Timeout = 60000;
Dec 22, 2008 09:07 PM|Nai-Dong Jin - MSFT|LINK
From your description, it seems that when the user select the specific culture from the dropdownlist, but if he redirects to ohter page, the specific culture get lost, right?
Thread.CurrentThread.CurrentUICulture = new CultureInfo(dil);
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(dil);base.InitializeCulture();
If so, i think the cause of the problem is that you have overrided the culture in the InitializeCulture event.Based on the code you provided, the user has selected a specific culture, although you have saved it into session, but i can't see where you have
passed the value to the second page. Just try to create the CurrentUICulture and CurrentCulture with the culture name that saved in session.