How to retrieve control's value from ViewState

E

epigram

I'm responding to a button click event on an asp.net web form. I then need
to retrieve the value from a TextBox control and I want to compare it
against the control's previous value to see if it has changed. How can I
retrieve a control's previous value from the ViewState? I know that I could
save the control's previous value in a session variable, reretrieve it's
value from the db, etc. But it would appear the control's previous value
would be in the ViewState since that is what ASP.NET uses to fire events
such as TextChanged.

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

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top