ASP.NET MVC 2 Reload pages without refresh and keep URL changing

故事扮演 提交于 2019-12-02 11:36:55

I've used the jQuery BBQ plugin (http://benalman.com/projects/jquery-bbq-plugin/) with great success. This and the jQuery Templating engine would be great for what you are trying to accomplish.

If you change the url of the browser this will automatically perform a redirect and refresh the entire page. You could use the hash sign (#) which doesn't trigger a refresh. For example if you change /home/index#foo to /home/index#bar the page won't refresh but you could send an AJAX request behind the scenes to update some placeholder.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!