Syatem language changing based on language selection
how to change system language based on a button click in your website?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Shen Hengbin94 reputationPosted Jul 23, 2012, 6:14 PM EDT
1, Design your resource table in your database.
ID Name EN CN JP
1 sitename yours site name ????? ???????
2, your set the language key in your session
Session["language"] = "EN"
3, Retrieve all your resources from table like bellow.
select Name , Session["language"] from resourcetable .
Restore the result with Key/Value mapping collection in your persistence class .
4, Each page will set its resource from above class.
5, when you click button . it just change the session value like
Session["language"] = "new language".
Then Reset your Class.
Hope it help you.
Posted Jul 26, 2012, 7:58 PM EDT
[email protected]
[email protected]
actually that much of coding i can't uploaded here thats why i am giving my mail id.