I currently have a page with a search bar. When the user enters something to search, the page is filled with search results. When the user clicks on one of the search results rows and navigates to another page to edit information and there is a cancel button. If the user clicks the cancel button they will be returned back to the search page and they will have to enter text again to search. How can create it so that when they click cancel they will be returned to the search page but with previous search results. Many examples or information on this will be appreciated.
This is what my cancel button looks like:
<a class="printRemove" id="cancel" href='<%: Url.Action("Search","Office") %>'>
<img alt="" src="<%:Url.Content("~/Content/images/newCancel.png") %>"/>
on your cancel button call
history.back(-1)OR pass values, required for search, back on cancel button and search again .