ControlParser Class
Provides methods for creating a Web server Control control or ITemplate interface from a string of markup that represents a persisted control or template.
Assembly: System.Design (in System.Design.dll)
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() ![]() | ParseControl(IDesignerHost, String) | Creates a control from the specified markup using the specified designer host. |
![]() ![]() | ParseControl(IDesignerHost, String, String) | Creates a control from the specified markup using the specified designer host and directives. |
![]() ![]() | ParseControls(IDesignerHost, String) | Creates an array of controls from the specified markup using the specified designer host. |
![]() ![]() | ParseTemplate(IDesignerHost, String) | Creates an ITemplate interface from the specified template markup. |
![]() ![]() | ParseTemplate(IDesignerHost, String, String) | Parses the specified template markup and creates an ITemplate interface. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
The T:System.Web.UI.Design.ControlParser class provides methods that can create a T:System.Web.UI.Control control or T:System.Web.UI.ITemplate interface by parsing a string of markup representing a control or control template.
The following code example shows how to get the HTML markup for a control on a page using the ControlPersister class and how to instantiate a control from it using the ControlParser class. The example also shows how to display Microsoft Windows dialog boxes from a designer.
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.jpeg?cs-save-lang=1&cs-lang=fsharp)
.jpeg?cs-save-lang=1&cs-lang=fsharp)