Share via


SaveViewState Method (Common)

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

protected virtual System.Object SaveViewState()

Return Values

This function returns the control's current view state. If there is no view state associated with the control, this method returns a null reference (Nothing in Visual Basic).

Remarks

View state is the accumulation of the values of a server control's properties. The SaveViewState method saves those property values and returns the string.

See Also

Control.SaveViewState

Applies to: MobileControl Class | MobilePage Class | List Class | ObjectList Class | SelectionList Class |StyleSheet Class