Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetDesignTimeHtml Method
Collapse the table of content
Expand the table of content

BaseDataBoundControlDesigner.GetDesignTimeHtml Method

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

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

public override string GetDesignTimeHtml()

Return Value

Type: System.String
The markup used to render the control at design time.

The BaseDataBoundControlDesigner class retrieves sample data that is used for binding purposes at design time before rendering the control. If the control is not data bound, it calls the GetEmptyDesignTimeHtml method. If there is an error rendering the control, it calls the GetErrorDesignTimeHtml method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft