Click here to Skip to main content
15,888,039 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Suppose I have an application in which user searching an item & then search that item category , subcategory & availability in country. Or next he search another item "So now I want to set a button(See Previous result) & by clicking on them he checked all his previous searched result. " Same as all browser back button works.

So kindly suggest me how can I do that. Any suggestion really appreciate.
Posted
Updated 3-Jul-13 2:56am
v2
Comments
Nirav Prabtani 3-Jul-13 8:58am    
Yes We can do this but,
There id no global or Universal solution for that.
There are variation of programming to do this for different different application,
It depends on your need...
You can do it by cookies and session,,,,:)
Mas11 3-Jul-13 9:14am    
Actually its need of my application that user can go back to his 'previous search result' same as our browser work, when we click on back & forward arrow then it shows all the previous pages.

C#
Hi I have done this ! Please see solution :

<script type="text/javascript">
function goBack()
{
window.history.back()
}
</script>

<input type="button" value="Back" onclick="goBack()">



The back() method loads the previous URL in the history list.
This is the same as clicking the Back button or history.go(-1).
 
Share this answer
 
v2
The thing you are trying to achieve seems like Caching.Refer to below link to get better idea how it works.

Caching ASP.NET Pages[^]

How To Control Page Output Caching in ASP.NET by Using Visual C# .NET[^]

Caching in ASP.NET[^]

Regards..:laugh:
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900