Defines methods that a type implements to serialize and deserialize an object graph.
Assembly: System.Web (in System.Web.dll)
The ViewState property. This infrastructure is used by classes that derive from the PageStatePersister class to maintain an ASP.NET page's state between requests. By default, ASP.NET page state is serialized and deserialized by an instance of the ObjectStateFormatter class; however, site and adapter developers can implement the interface on their own types to perform this work.interface defines methods that a type can implement to serialize and deserialize the state that an ASP.NET Web server control maintains in its
The following code example demonstrates how to create a PageStatePersister object that saves view and control state to a stream on the Web server. The StreamPageStatePersister class demonstrates how to override the Load and Save methods to extract and save page state information. These methods use the interface inherited from the PageStatePersister class to serialize and deserialize view state. This code example is part of a larger example provided for the PageStatePersister class.
Available since 2.0