ControlPersister

ControlPersister

System.Web.UI.Design (system.design.dll)sealed class

This class provides shared (static) helper methods that retrieve the information used to persist a control and its state. For example, the PersistControl( ) method returns a string that looks very similar to the control tag used in the .aspx file, with the named class used instead of the "asp:" prefix. Typically, this class is used only by the IDE.

public sealed class ControlPersister {
// Public Static Methods
   public static string PersistControl(System.Web.UI.Control control);
   public static string PersistControl(System.Web.UI.Control control, System.ComponentModel.Design.IDesignerHost host);
   public static void PersistControl(System.IO.TextWriter sw, System.Web.UI.Control control);
   public static void PersistControl(System.IO.TextWriter sw, System.Web.UI.Control control,
        System.ComponentModel.Design.IDesignerHost host);
   public static string PersistInnerProperties(object component, System.ComponentModel.Design.IDesignerHost host);
   public static void PersistInnerProperties(System.IO.TextWriter sw, object component,
        System.ComponentModel.Design.IDesignerHost host);
}


    Part I: Introduction to ASP.NET
    Part III: Namespace Reference
    Chapter 40. The System.Web.UI.MobileControls Namespace
    Chapter 42. The System.Web.UI.WebControls Namespace