WebPartManager.LoadControlState(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Loads control state data that was saved from a previous page request, and needs to be restored on a subsequent request.
protected public:
override void LoadControlState(System::Object ^ savedState);
protected internal override void LoadControlState (object savedState);
override this.LoadControlState : obj -> unit
Protected Friend Overrides Sub LoadControlState (savedState As Object)
Parameters
- savedState
- Object
Contains the persisted state data to be loaded.
Exceptions
savedState
is not a valid ControlState.
Remarks
The LoadControlState method is helpful for restoring property data that should be persisted across postbacks of a page, even when the EnableViewState property is set to false
.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.