Solved

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

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

729 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