how to set different languages in .net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jay123
    New Member
    • Sep 2008
    • 121

    how to set different languages in .net

    hi all,

    i am writing some application in c#, .net 2008. my question is whenever someone comes on my website. he is given a choice of languages(which is english and german in my case) now if he selects german, the whole text on my web-site should become german until he closes or changes again to english.

    the default should always be englsih although

    any help with code will be appreciated.

    Thanks in advance
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Well I guess you would want to write all your pages using the locale settings stuff, and default to english.
    I would say when the user selects "German", that a Session variable be created for the locale choice, then every page you write could check that session value to know what locale to use.

    Comment

    Working...