How to keep the browser history in sync when using Ajax?

后端 未结 8 1668
無奈伤痛
無奈伤痛 2020-11-29 07:48

I\'m writing a simple photo album app using ASP.NET Ajax.
The app uses async Ajax calls to pre-load the next photo in the album, without changing the URL in the browser.

相关标签:
8条回答
  • 2020-11-29 08:34

    For all solutions about the back button, none of them are "automatic". With every single one you are going to have to do some work to persist the state of the page. So no, there isn't a way to "trick" the browser, but there are some great libraries out there that help you with the back button.

    0 讨论(0)
  • 2020-11-29 08:35

    MSDN has an article about Managing Browser History in ASP.NET AJAX

    0 讨论(0)
提交回复
热议问题