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.

Namespace:   System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

System.Object
  System.Web.UI.Design.ControlParser

[<Sealed>]
[<SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)>]
type ControlParser = class end

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticParseControl(IDesignerHost, String)

Creates a control from the specified markup using the specified designer host.

System_CAPS_pubmethodSystem_CAPS_staticParseControl(IDesignerHost, String, String)

Creates a control from the specified markup using the specified designer host and directives.

System_CAPS_pubmethodSystem_CAPS_staticParseControls(IDesignerHost, String)

Creates an array of controls from the specified markup using the specified designer host.

System_CAPS_pubmethodSystem_CAPS_staticParseTemplate(IDesignerHost, String)

Creates an ITemplate interface from the specified template markup.

System_CAPS_pubmethodSystem_CAPS_staticParseTemplate(IDesignerHost, String, String)

Parses the specified template markup and creates an ITemplate interface.

System_CAPS_pubmethodToString()

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.

No code example is currently available or this language may not be supported.

.NET Framework
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.

Return to top
Show: