System.Web.UI.Design.WebControls.HyperLinkDesigner.GetDesignTimeHtml Method

Gets the markup that is used to render the associated control at design time.

Syntax

public override string GetDesignTimeHtml ()

Returns

A string containing the markup used to render the associated hyperlink control at design time.

Remarks

The HyperLinkDesigner.GetDesignTimeHtml method generates the design-time markup for the associated System.Web.UI.WebControls.HyperLink control. The method first saves local copies of the System.Web.UI.WebControls.HyperLink.Text, System.Web.UI.WebControls.HyperLink.NavigateUrl, and System.Web.UI.WebControls.HyperLink.ImageUrl properties, as well as the System.Web.UI.Control.Controls child collection. It provides default values for these properties if the original values are null or blank. The HyperLinkDesigner.GetDesignTimeHtml method then calls the System.Web.UI.Design.TextControlDesigner.GetDesignTimeHtml base method to generate the markup and restores the properties and child control collection to their original values, if necessary.

Requirements

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