Solved

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

Posted on 2016-11-07
1
72 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello World !, Thanks : My Sincere thanks to @Michael Male who encouraged me to write an article on this in my  blog (http://scribblejava.wordpress.com). Introduction:       There are several technical issues a developer may face in his…
Today I am discussing AJAX problems in IE7 and I bet this will helps many guys out here who have problems with AJAX work. Lets start with the discovery of problem and then we will talk about its different solutions. My last two projects included …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

685 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