ControlParser

ControlParser

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

This class is used predominantly by the ASP.NET framework. It allows you to generate a System.Web.UI.Control object from a string that represents the persisted control. You can perform this operating using the ParseControl( ) method, and you can cast the Control to the appropriate type to interact with it.

public sealed class ControlParser {
// Public Static Methods
   public static Control ParseControl(System.ComponentModel.Design.IDesignerHost designerHost, 
        string controlText);
   public static Control ParseControl(System.ComponentModel.Design.IDesignerHost designerHost, 
        string controlText, string directives);
   public static ITemplate ParseTemplate(System.ComponentModel.Design.IDesignerHost designerHost, 
        string templateText);
   public static ITemplate ParseTemplate(System.ComponentModel.Design.IDesignerHost designerHost, 
        string templateText, string directives);
}


    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