System.Web.UI.TemplateControl.ParseControl Method

Parses an input string into a System.Web.UI.Control object on the Web Forms page or user control.

Syntax

public Control ParseControl (string content)

Parameters

content
A string that contains a user control.

Returns

The parsed System.Web.UI.Control.

Remarks

The content parameter contains a user control, such as you would find in an .ascx file. This string cannot contain any code, because the TemplateControl.ParseControl(string) method never causes compilation.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0