This documentation is archived and is not being maintained.

Page.SavePageStateToPersistenceMedium Method

Saves any view-state information for the page.

[Visual Basic]
Protected Overridable Sub SavePageStateToPersistenceMedium( _
   ByVal viewState As Object _
protected virtual void SavePageStateToPersistenceMedium(
 object viewState
protected: virtual void SavePageStateToPersistenceMedium(
 Object* viewState
protected function SavePageStateToPersistenceMedium(
   viewState : Object


An Object in which to store the view-state information.


Override this method if you want to save the Page view state in anything other than a hidden field. If you choose to do so, you must also override the Page.LoadPageStateFromPersistenceMedium method.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

Page Class | Page Members | System.Web.UI Namespace | LoadPageStateFromPersistenceMedium