how to reset a control to pre-viewstate state

A

Andy Fish

Hi,

Given a control on a form with viewstate enabled, is there any way to reset
the control to it's default values (i.e. undo any viewstate settings).

I guess I could disable viewstate programmatically and then do a
response.redirect(myself), but I want to do this without a round-trip.

Andy
 
G

Guest

I don't think that there is any "automatic" way to do this, but you should be
able to do it very easily, by storing the original/default value in something
like a session variable, or a hidden field.

Doug
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top