syatem language changing based on language selection
how to change system language based on a button click in your website?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Jul 26, 2012, 11:58 PM
[email protected]
[email protected]
actually that much of coding i can't uploaded here thats why i am giving my mail id.
Shen HengbinPosted Jul 23, 2012, 10:14 PM
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.