System.Web.UI.Design.ControlDesigner.CreateErrorDesignTimeHtml Method

Creates HTML markup to display a specified error message at design time.

Syntax

protected string CreateErrorDesignTimeHtml (string errorMessage)

Parameters

errorMessage
The error message to include in the generated HTML markup.

Returns

An HTML markup string that contains the specified error message.

Remarks

Use the ControlDesigner.CreateErrorDesignTimeHtml(string) method to create HTML markup to display an error message for a control at design time. The value for errorMessage specifies a localized string that is displayed to the user of the control at design time.

The System.Web.UI.Design.ControlDesigner class implementation of the ControlDesigner.CreateErrorDesignTimeHtml(string) method returns a table with two rows, as follows:

To generate HTML markup for an error message with an associated exception, use the ControlDesigner.CreateErrorDesignTimeHtml(string, Exception) overload. To generate HTML markup for an exception without specifying a localized error message, use the ControlDesigner.GetErrorDesignTimeHtml(Exception) method.

Requirements

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