Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Remembering the state of a Page

Reply
Thread Tools

Remembering the state of a Page

 
 
=?Utf-8?B?QmlsbCBNYW5yaW5n?=
Guest
Posts: n/a
 
      09-06-2005
I have an ASP.NET application with many different pages. On one particular
page, I would like it to be restored to its previous state if a user
navigates away (within the application) and then returns to that page - as if
they had used the "Back" button in IE to get back to the page.

I tried saving the viewState of the page in a session variable, but that
failed when I tried to restore it on subsequent Page_Load events.

Is there another way to accomplish this?

--
Thanks,

Bill Manring
Wavefront Software, Inc.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q3VydF9DIFtNVlBd?=
Guest
Posts: n/a
 
      09-06-2005
You could use their Login (assuming it's a login based site) and store it in
a cookie. Then retrieve their data from a DB on the page load, based on that
id.
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com



"Bill Manring" wrote:

> I have an ASP.NET application with many different pages. On one particular
> page, I would like it to be restored to its previous state if a user
> navigates away (within the application) and then returns to that page - as if
> they had used the "Back" button in IE to get back to the page.
>
> I tried saving the viewState of the page in a session variable, but that
> failed when I tried to restore it on subsequent Page_Load events.
>
> Is there another way to accomplish this?
>
> --
> Thanks,
>
> Bill Manring
> Wavefront Software, Inc.

 
Reply With Quote
 
 
 
 
KMA
Guest
Posts: n/a
 
      09-07-2005
Bill,

I can't offer a solution to exactly your problem, but when I have to persist
a page contents I write them to an xml file whose name consists of the
session id. I too would be interested to learn of a method to save and load
the viewstate direc.

"Bill Manring" <> wrote in message
news:A0C3C131-AC42-4FB1-9B01-...
> I have an ASP.NET application with many different pages. On one

particular
> page, I would like it to be restored to its previous state if a user
> navigates away (within the application) and then returns to that page - as

if
> they had used the "Back" button in IE to get back to the page.
>
> I tried saving the viewState of the page in a session variable, but that
> failed when I tried to restore it on subsequent Page_Load events.
>
> Is there another way to accomplish this?
>
> --
> Thanks,
>
> Bill Manring
> Wavefront Software, Inc.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remembering a boxes state with a cookie. anathema Javascript 1 01-23-2007 06:44 PM
Page seems to be remembering HttpSessionState Nathan Sokalski ASP .Net 2 01-19-2007 07:52 PM
Page seems to be remembering HttpSessionState Nathan Sokalski ASP .Net Building Controls 1 01-19-2007 07:52 PM
asp:table remembering state? Davey P ASP .Net Web Controls 1 06-10-2005 06:34 PM
asp:table remembering state!? =?Utf-8?B?RGF2ZXkgUA==?= ASP .Net 0 06-09-2005 09:18 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57