Export (0) Print
Expand All

Page.SavePageStateToPersistenceMedium Method

Saves any view-state information for the page.

[Visual Basic]
Protected Overridable Sub SavePageStateToPersistenceMedium( _
   ByVal viewState As Object _
)
[C#]
protected virtual void SavePageStateToPersistenceMedium(
 object viewState
);
[C++]
protected: virtual void SavePageStateToPersistenceMedium(
 Object* viewState
);
[JScript]
protected function SavePageStateToPersistenceMedium(
   viewState : Object
);

Parameters

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

Remarks

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.

Requirements

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

See Also

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

Show:
© 2014 Microsoft