Can we restore View State after Session Expires?

R

rajmgopal

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
 
C

Christoph Richter [AT]

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



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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top