?
Solved

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

Posted on 2008-10-28
3
Medium Priority
?
180 Views
Last Modified: 2012-05-05
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
Comment
Question by:phillarby
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
prairiedog earned 1500 total points
ID: 22823588
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
 

Author Comment

by:phillarby
ID: 22824309
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
 

Author Closing Comment

by:phillarby
ID: 31510812
Ended up doing just that
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

752 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