SaveViewState Method

DataBoundControl::SaveViewState Method ()

.NET Framework 4.6 and 4.5

Saves any view-state changes that have occurred since the time the page was posted back to the server.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

virtual Object^ SaveViewState() override

Return Value

Type: System::Object^

The control's current view state. If there is no view state associated with the control, this method returns null.

.NET Framework
Available since 4.5
Return to top
© 2015 Microsoft