Solved

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

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

776 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