How to change the UICulture in an ASP.NET Page
Sometimes, we’d stored a cookie with the user language preference. But, the fact of change the Page.UICulture don’t have any resoult.
To changed this property we should do it inside the InitializeCulture Page method and override it. Imagine that the cookie is called “lang”:
protected override void InitializeCulture()
{
if (Request.Cookies["lang"] != null)
{
if (Request.Cookies["lang"].Value != "")
{
Page.UICulture = Request.Cookies["lang"].Value;
}
}
base.InitializeCulture();
}
Thus, you could change the page language ;).