Solved

Using MVC and Ajax How Do You Get the Browser Back Button to Work?

Posted on 2016-11-07
1
29 Views
Last Modified: 2016-11-09
I have do a search using MVC.  How do you get the browser back button to go back and see the same search query that was used using MVC and Ajax?  The Partial View I am using from the search is disappearing when I click on the browser back button.

Thanks,

Dan
0
Comment
Question by:danielolorenz
1 Comment
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 41879810
as you find, this is not supposed to work.
you can use a framework like angular to manage of this for you or use history.pushState to save state and be able to reload it on browser back button. you will need to save or reload your view.
with angularjs it will allow you to do that quickly and simply
not only angularjs but this is my favorite
http://todomvc.com/
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now