Click here to Skip to main content
15,665,942 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 3 tabs, in which each tab loads different pages. when user do search on page1 by passing textbox values it returns values. Now when i move to page2 and come back to page1 whatever user entered on page1 for search, have to retain that in textbox. How to do that. pls assist.
[no name] 6-Sep-14 4:05am    
use session

1 solution

There are two basic ways:
1) Cookies. These are stored on the client computer, so even if he comes back a week later, you can retrieve the info.[^]
2) Session. These are stored on the server, and will be lost when the browser is closed, or after about 20 minutes of inactivity.[^]

There are other ways involving databases, but unless you force your users to log in, that is probably not what you want to do.
Share this answer

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