System.Web.UI.WebControls.HyperLink.AddParsedSubObject Method

Notifies the control that an element was parsed, and adds the element to the System.Web.UI.WebControls.HyperLink control.

Syntax

protected override void AddParsedSubObject (object obj)

Parameters

obj
An object that represents the parsed element.

Remarks

This method is used primarily by control developers, when deriving a custom control from the System.Web.UI.WebControls.HyperLink class.

If the input object is a System.Web.UI.LiteralControl, and the System.Web.UI.WebControls.HyperLink control has no child controls, then the input object is used to set the HyperLink.Text property of the control. Otherwise, the System.Web.UI.Control.AddParsedSubObject(object) method of the base System.Web.UI.Control class is called and the specified object is added to the System.Web.UI.Control.Controls collection.

Requirements

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