System.Web.UI.Design.ControlPersister Class

Provides methods for persisting Web server controls at design-time.

See Also: ControlPersister Members

Syntax

public sealed class ControlPersister

Remarks

The System.Web.UI.Design.ControlPersister class provides methods that can persist a System.Web.UI.Control control or an System.Web.UI.ITemplate interface implementation as a string of aspx code. The implementation of these methods is driven by metadata attributes, such as the System.ComponentModel.DefaultValueAttribute, System.Web.UI.PersistenceModeAttribute, and System.ComponentModel.DesignerSerializationVisibilityAttribute.

Note:

The Web Forms page designer does not support the ResetPropertyName method that is optionally exposed by Microsoft Windows Forms-based controls for property persistence.

To create a System.Web.UI.Control object or an System.Web.UI.ITemplate interface by parsing a string of control- or template-persistence data, use the System.Web.UI.Design.ControlParser class methods.

Requirements

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