Solved

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

Posted on 2008-10-28
3
171 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

739 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