Any ideas on how to programmatically set the language for a page?
You could try to change the CurrentCulture-thread.
Thanks for your reply.
I've tried setting it (in Page_Load) but without any change. The Culture gets set, but the variables are still in Swedish.
Try this one:
LanguageContext.Current.CurrentUILanguage = "EN";
Thank you! This solved my problem (LanguageContext.Current.CurrentUILanguageID is the correct property).
Just upgraded a site form 4.51 til 4.62, and in one of the aspx-pages, we set the CurrentPage.LanguageID programmatically, to either "SV" och "EN". For some reason, this doesn't change the page language efter the upgrade. The LanguageID gets set, but the variables we get from the lang-files only comes from the default language.