简体   繁体   中英

Globalization for asp.net MVC website

I am currently trying to change the language according to the user choice for my website, i have a dropdown that call a method via an ajax action link to change the language settings. The problem is that the language don't change right the way, i have to change to an other page to see a difference. I would like to know if there is a way to refresh the actual page juste like when you press F5 in your browser.

Thanks in advance.

JavaScript:

window.location.reload(true);

Specifying true instructs the browser to always reload from the server instead of potentially using it's cache.

最好用新语言修改当前的Url并进行重定向。因此它将重定向到具有更新URL的同一页面。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM