Outputs a string of data that represents the persisted form of the specified control to the specified System.IO.TextWriter.
- sw
- The System.IO.TextWriter to output the persisted control data to.
- control
- The System.Web.UI.Control to persist.
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.