Your favorite tutorial for caching viewstate?

C

clintonG

I've got a big fat cow -- a wiazrd control with 19 steps -- and I need to
put Bessie back in the barn.
I need to learn how to cache the Viewstate for this page and maintain state
should the user hit the browser's back button. I'm looking around of course
but ask what are your favorite tutorials for this objective?

<%= Clinton Gallagher
 
G

Guest

First, add some wiring to user's chairs. Next, add current. :)

If you truly need to cache things, you can use session or cache or create
your own custom cache scheme. You cannot protect the user from him or
herself, however. Viewstate is stored in the page, so the user coming back
forward to the page will save this, but the server will not know if they go
back and start clicking away. Ugggh!

You can disable the back button, of course. :)

I had to work on an app with custom caching. We create a new base class
inherited from page that cleared all of the page cached for other pages when
a page was loaded. Something like that might work for you, unless you need
something to persist after user hits back and then plays with the site for
awhile and then returns. If so, your users need training. :)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
B

Bruce Barker

there is nothing more annoying then sites that disable the back button, or
worse just warn you not to. you should code your site to support the back.

-- bruce (sqlwork.com)
 
C

clintonG

Those Cowboys get radical :)
I wouldn't disable the back button myself but as Greg reminds I may have to
devise a custom scheme. I'm going to read the stuff Peter has suggested.
Thanks for comments fellas...

<%= Clinton Gallagher
 
G

Guest

I'm also evaluating options to better manage viewstate. I've just started to
do some research and the few articles and tutorials that I have seen similar
to those referenced all use C#. Is this coincidence or is this a limitation
of vb?

Thanks
 

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

Staff online

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top