System.Web.UI.Design.ControlPersister.PersistControl Method

Gets a string of data that represents the persisted form of the specified control.

Syntax

public static string PersistControl (System.Web.UI.Control control)

Parameters

control
The System.Web.UI.Control to persist.

Returns

A string that represents the persisted form of the control.

Remarks

This method requires an System.ComponentModel.Design.IDesignerHost implementation to work correctly. This method uses the System.Web.UI.Control.Site of the specified control to retrieve the designer host.

Requirements

Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0