SessionPageStatePersister Constructor (Page)

 

Initializes a new instance of the SessionPageStatePersister class.

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

new : 
        page:Page -> SessionPageStatePersister

Parameters

page
Type: System.Web.UI.Page

The Page that the view state persistence mechanism is created for.

Exception Condition
ArgumentException

The HttpSessionState is null (Nothing in Visual Basic)

The following code example demonstrates how you can write a PageAdapter class to return an instance of the SessionPageStatePersister class to save view state to the server-side session object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: