Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SavePrivateViewState Method

MobileControl.SavePrivateViewState Method

Saves any private view-state changes that have occurred since the page was loaded from persistence. If no changes were made, this method returns a null reference (Nothing in Visual Basic).

Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in system.web.mobile.dll)

protected:
virtual Object^ SavePrivateViewState ()
protected Object SavePrivateViewState ()
protected function SavePrivateViewState () : Object
Not applicable.

Return Value

An object containing the altered private view state.

You can override this method to store a private view state. In addition to information saved with the ordinary view state, ASP.NET mobile Web Forms store information such as whether or not the form is paginated. This added information is stored in the private view state and is stored on the client rather than the server. A private view state is saved in an optimized manner. Default behavior, such as making the first form the active form, is never included in the saved private view state.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show:
© 2015 Microsoft