how to store culture info into a cookie
-
how to store culture info into a cookie for eg Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US") LoadStrings(Thread.CurrentThread.CurrentCulture) i want to store the above said culture info in cookie tanx
-
how to store culture info into a cookie for eg Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US") LoadStrings(Thread.CurrentThread.CurrentCulture) i want to store the above said culture info in cookie tanx
Hi, If I understood you right, you are working on multi-language website, and you need to save the lang of user based on his/her selection. To use cookie, simply go to this website http://msdn.microsoft.com/en-us/library/system.web.httpcookie.aspx[^] but to work effectively you need to load the value from a cookie e.g. en-US at session startup (use global.asax) if there is no cookie, assign a default value, and use session and "overrides sub InitializeCulture" event to assign lang to Thread.CurrentThread.CurrentUICulture/CurrentCulture if session expired, reload the value from cookie again... hope this will help you and others. regards, NajiCo
NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice... http://www.facebook.com/group.php?gid=5932660937[^]