i would like to know how to keep a session or how to make the browser remember which language should the application keep while navigating and moving from a page to another should i recall the overrided methode :
protected override void InitializeCulture()
{
base.InitializeCulture();
string cult = Request["lstLanguage"];
if (cult != null)
{
Culture = cult;
UICulture = cult;
}
}
i’ve tried :
Session["cult"] = cult;
but it does not work
more informations there is a a drop down list at the home page which make the user choose the language.
what should i do ? thanks
You can keep the selected culture in a cookie. That way, when the user returns to your site the culture will be “remembered”.
Using Session will mean the user has to keep choosing the culture when they return – not good.
You can access the site’s cookies with the Request object: