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

Outputs a string of data that represents the persisted form of the specified control to the specified System.IO.TextWriter.

Syntax

public static void PersistControl (System.IO.TextWriter sw, System.Web.UI.Control control)

Parameters

sw
The System.IO.TextWriter to output the persisted control data to.
control
The System.Web.UI.Control to persist.

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