SessionPageStatePersister Constructor (Page)
.NET Framework (current version)
Initializes a new instance of the SessionPageStatePersister class.
Assembly: System.Web (in System.Web.dll)
| 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.
.NET Framework
Available since 2.0
Available since 2.0
Show: