System.Web.UI.Design.WebControls.ButtonDesigner.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 System.Web.UI.WebControls.Button at design time.

Remarks

The ButtonDesigner.GetDesignTimeHtml method replaces the System.Web.UI.WebControls.Button.Text property with the System.Web.UI.Control.ID property of the System.Web.UI.WebControls.Button control if the System.Web.UI.WebControls.Button.Text contains no displayable characters. Then, the ButtonDesigner.GetDesignTimeHtml method calls its base method, System.Web.UI.Design.ControlDesigner.GetDesignTimeHtml, which calls into the System.Web.UI.Control.RenderControl(System.Web.UI.HtmlTextWriter) method to generate the markup.

Requirements

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