public class PageBase : Page
private const string SESSION_KEY_LANGUAGE = "CURRENT_LANGUAGE";
protected override void InitializeCulture()
//If you would like to have DefaultLanguage changes to effect all users,
// or when the session expires, the DefaultLanguage will be chosen, do this:
// (better put in somewhere more GLOBAL so it will be called once)
//LanguageManager.DefaultCulture = ...
//Change language setting to user-chosen one
if (Session[SESSION_KEY_LANGUAGE] != null)
private void ApplyNewLanguage(CultureInfo culture)
LanguageManager.CurrentCulture = culture;
//Keep current language in session
protected void ApplyNewLanguageAndRefreshPage(CultureInfo culture)
//Refresh the current page to make all control-texts take effect
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Full Name : Nguyen Thanh TungSex : MaleDate of Birth : October 06, 1983Nationality : Vietnamese
Trustworthy, efficient, capable work under pressure, outgoing person and capable work in a team.
AREA OF EXPERTISE