November Happy Hour will be moved to Thursday December 5th.

Change language of a page

Vote:
 
Is there a way of changing the language of a page wihtout setting a cookie and doing a redirect? Most search engines exclude redirect pages from their index (even if the pages redirect to them selves) which is kind of a bad thing if you set the language based on what URL the visitor used and then reload the page with a Response.Redirect() to load the new language :-) /Patrik
#12269
Apr 26, 2005 14:37
Vote:
 
HttpContext.Current.Items["epslanguage"] = "EN";
#13948
Apr 26, 2005 15:08
Vote:
 
That had absolutely no effect for me when I put that in Page_Init(). Do I need to do anything else after that for the new language to be displayed?
#13949
Apr 27, 2005 13:12
Vote:
 
I managed to get it to work by setting Session["epslanguage"] = "NO" and not making a redirect. /Patrik
#13950
Apr 27, 2005 14:38
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.