title: How to change page localization with asp:DropDownList?
body: <p>I have localized application where user can choose her preferred language in dropdown control. After OnSelectedIndexChanged event there is postback and CurrentThread.CurrentCulture should be set to what user chooses.</p>
  
  <pre><code>Login.aspx.cs
  public partial class Login : BasePage
  {
     protected void LanguageDrop_changed(object sender, EventArgs e)
     {
         var lang = LanguageDropDown.SelectedValue;
         Thread.CurrentThread.CurrentUICulture = new CultureInfo(lang);
         Thread.CurrentThread.CurrentCulture = new CultureInfo(lang);
     }
  }
  </code></pre>
  
  <p>However, it does not work correct because LanguageDrop_click event fires after InitializeCulture so some default culture is initialized, controls are localized to default language and then CurrentThread.CurrentCulture is set. So user have to refresh page once more to see them in chosen language.</p>
  
  <p>UPDATE:
  I found partial answer: <a href="http://www.codeproject.com/Kb/aspnet/localizationByVivekTakur.aspx" rel="nofollow">http://www.codeproject.com/Kb/aspnet/localizationByVivekTakur.aspx</a>
  He retrieves language dropdown value in InitializeCulture() event from Form collection</p>