8
Reply

Changing Culture dynamically

kaila

kaila

Jan 14 2008 1:03 PM
4.2k

I have a drop down list with the different languages the website supports. I tried to change the culture based on the _selectedIndexChanged event. But that doesn't work since the page_load event is called before the index change event.

in other words- in the page_load event the Thread.CurrentThread.CurrentCulture is set to "en-US". 

When s/o selects a value in the drop down list , the pageload is called and only then is the selectedIndexChanged called and sets the current culture to "fr-FR". the page does not show the change because the pageload event happened already!! 

 

What exactly am I doing wrong??????????

 


Answers (8)