UserControl::SaveViewState Method ()
.NET Framework (current version)
Saves any user control view-state changes that have occurred since the last page postback.
Assembly: System.Web (in System.Web.dll)
Return Value
Type: System::Object^Returns the user control's current view state. If there is no view state associated with the control, it returns null.
In general, you do not need to call this method. However, if you store custom information in view state, you can override this method to do so.
The following example demonstrates a user control that manages its view state using the LoadViewState and SaveViewState methods.
.NET Framework
Available since 1.1
Available since 1.1
Show: