locked
I want user to select language in which he want to view my website.............. RRS feed

  • Question

  • User-653688788 posted

    I've seen video tutorials on localization, but using that method, I've to chnage preferences in Browser.

    But I want the user to select his preferred language from within my WebApplication. 

    Can anyone help me out. 

    Tuesday, September 26, 2006 2:30 AM

All replies

  • User-503940700 posted

    Hello,

    This article might help:

    http://www.codeproject.com/useritems/localization.asp

    HTH,

    Vivek

    Tuesday, September 26, 2006 7:57 AM
  • User1571662359 posted

    1. First you must remove

    Culture="auto" UICulture="auto"

    from the Page tag, to prevent automatic browser culture detection.

    2. Then you put your interface to select language and put this information in a cookie or something.

    3. Then put some code in the BeginRequest handler of global.asax to read the culture value from the cookie and set it to the CurrentThread.CultureInfo

    Wednesday, September 27, 2006 5:26 PM
  • User-653688788 posted

    1. First you must remove

    Culture="auto" UICulture="auto"

    from the Page tag, to prevent automatic browser culture detection.

    2. Then you put your interface to select language and put this information in a cookie or something.

    3. Then put some code in the BeginRequest handler of global.asax to read the culture value from the cookie and set it to the CurrentThread.CultureInfo

     

    Thx buddy 

    Thursday, September 28, 2006 1:23 AM