开发者

change url without making page postback -- mvc

Is there is a way to chage the url without making page postback using MVC.My requirement is , i am 开发者_运维技巧having a page,on a button click only small portion of page get updated.I also want to change the url on that updation. I dont have much idea about "MVC".So please let me know if there is a way.


You need HTML5-able browser and some JavaScript. Here is the demo of HTML5 history feature.

GitHub implemented that feature for tree browsing. And there is screencast in railscast.com.


I'm afraid not. To display a different you URL you would have to browse to that URL which would involve another request.

You could update part of your page using an AJAX call that fires on your button click.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜