Solved

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

Posted on 2008-10-28
3
167 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
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
prairiedog earned 500 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 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