Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SaveViewState Method
Collapse the table of content
Expand the table of content

ListView.SaveViewState Method

Saves the current view state of the ListView control.

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

protected override Object SaveViewState()

Return Value

Type: System.Object
An object that contains the saved view state values for the ListView control.

The SaveViewState method is a helper method that is called by the ListView control to save the state of the control. For more information, see WebControl.SaveViewState.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5
Show:
© 2015 Microsoft