• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

can you keep a viewstate in a session to retreive it later?

This is the scenario I'm facing:
We have a search page that (as you'd probably expect) allows users to specify search critera and presents them with a list of items. Then they select an item and go off following links all over the place and doing all kind of other things within the app.  Once they have finished what they are doing and return to the search page, they want it to reload still containing the details of the last search they performed.
 
I was wondering if I could achieve this by saving the viewstate of the search page into a session object each time a search is performed, and reload it when opening the search page.  Is this possible? Is there a better way to go about this? I'm struggling to find any information on how I might achieve it?

0
phillarby
Asked:
phillarby
  • 2
1 Solution
 
prairiedogCommented:
You may want to save their search criteria in a Session variable, and then later when they come back to the page, you just pull out the data with the saved criteria.
0
 
phillarbyAuthor Commented:
Yeah, that may be what I end up doing.  Really I was wondering if the same things could be achieved by saving a viewstate so that it wouldn't need to be updated each time the search page is updated (Which si quite a lot)
0
 
phillarbyAuthor Commented:
Ended up doing just that
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now