AJAX Page - Using CallbackViewState

The ViewState is persistent on callbacks.

Add a new contact to the contacts list.
The contacts list is stored in ViewState object.


Add New Contact
Name:
Phone:
Email:
My Contacts List
Clear Contacts List


Make dummy postback to the server.

The ViewState object is empty after reloading the page. Reload



See also EnableCallbackViewState property.
Increase the value of ViewState variable using a callback.




Make a real postback to the server.
You will see the ViewState variable value, updated according to the last callback.



ViewState value = 1


See also EnableCallbackViewState property.

"I'm pretty happy on replacing ComponentArt's splitter with yours, I'm getting vastly superior performance out of it. On resize of the CA splitter it can take 2-3 seconds to complete a resize of a complex page whereas yours is maybe .5 of a second max."

David Homer

Random testimonial   All testimonials