Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > Can we restore View State after Session Expires?

Reply
Thread Tools

Can we restore View State after Session Expires?

 
 
rajmgopal
Guest
Posts: n/a
 
      06-15-2006
Hi
As you are all aware, in mobile pages the View State is stored in the
Session and when the Session expires the View State also expires.

What I would like to know is whether there is a way to restore the View
State in some way when this happens.

For now I am handling the exception in OnViewStateExpire(...) and
transfering clients to an error page.

This problem is most prevalent during postbacks. We have access to
postback data , but not View State data ...

Any suggestions/comments will be greatly appreciated

Thank you in advance
Regards
Raj

 
Reply With Quote
 
 
 
 
Christoph Richter [AT]
Guest
Posts: n/a
 
      06-18-2006
You can turn off storing in the session and relly try to limit the
data in the viewstate (since you should limit the data in mobile
pages)
or make your own PageStatePersister that stores the viewstate and the
control state wherever you want. maybe an sql server (e.g. what could
be the best is, store the controlstate in the client and the viewstate
in the session.)

cheers,
christoph



On 15 Jun 2006 16:37:59 -0700, "rajmgopal" <(E-Mail Removed)>
wrote:

>Hi
>As you are all aware, in mobile pages the View State is stored in the
>Session and when the Session expires the View State also expires.
>
>What I would like to know is whether there is a way to restore the View
>State in some way when this happens.
>
>For now I am handling the exception in OnViewStateExpire(...) and
>transfering clients to an error page.
>
>This problem is most prevalent during postbacks. We have access to
>postback data , but not View State data ...
>
>Any suggestions/comments will be greatly appreciated
>
>Thank you in advance
>Regards
>Raj


Cheers,
Christoph

Vienna/Austria

www.code4ward.net/blogs/cmn
 
Reply With Quote
 
 
 
 
rajmgopal
Guest
Posts: n/a
 
      06-19-2006
Hi Christoph
Thanks for the suggestion.

Regards
Raj

Christoph Richter [AT] wrote:
> You can turn off storing in the session and relly try to limit the
> data in the viewstate (since you should limit the data in mobile
> pages)
> or make your own PageStatePersister that stores the viewstate and the
> control state wherever you want. maybe an sql server (e.g. what could
> be the best is, store the controlstate in the client and the viewstate
> in the session.)
>
> cheers,
> christoph
>
>
>
> On 15 Jun 2006 16:37:59 -0700, "rajmgopal" <(E-Mail Removed)>
> wrote:
>
> >Hi
> >As you are all aware, in mobile pages the View State is stored in the
> >Session and when the Session expires the View State also expires.
> >
> >What I would like to know is whether there is a way to restore the View
> >State in some way when this happens.
> >
> >For now I am handling the exception in OnViewStateExpire(...) and
> >transfering clients to an error page.
> >
> >This problem is most prevalent during postbacks. We have access to
> >postback data , but not View State data ...
> >
> >Any suggestions/comments will be greatly appreciated
> >
> >Thank you in advance
> >Regards
> >Raj

>
> Cheers,
> Christoph
>
> Vienna/Austria
>
> www.code4ward.net/blogs/cmn


 
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
How to restore grid view state (sort, page, etc.) after 'returning' Bogdan ASP .Net 0 06-03-2009 09:10 PM
Unable to make the session state request to the session state server Maciek ASP .Net 0 09-15-2005 08:49 PM
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Mike Larkin ASP .Net 1 05-23-2005 12:33 PM
Unable to make the session state request to the session state server Not Liking Dot Net Today ASP .Net 0 04-21-2004 11:54 AM
unable to make the session state request to the session state server shamanthakamani ASP .Net 1 11-20-2003 04:51 AM



Advertisments