ControlDesigner.CreateErrorDesignTimeHtml Method (String)

Note: This method is new in the .NET Framework version 2.0.

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

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

protected:
String^ CreateErrorDesignTimeHtml (
	String^ errorMessage
)
protected String CreateErrorDesignTimeHtml (
	String errorMessage
)
protected function CreateErrorDesignTimeHtml (
	errorMessage : String
) : String

Parameters

errorMessage

The error message to include in the generated HTML markup.

Return Value

An HTML markup string that contains the specified error message.

Use the CreateErrorDesignTimeHtml 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 ControlDesigner class implementation of the CreateErrorDesignTimeHtml method returns a table with two rows, as follows:

  • The first row contains the type name and site name for the Component property of the ControlDesigner.

  • The second row contains the input error message string.

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

Notes to Inheritors The CreateErrorDesignTimeHtml(String) overload is functionally equivalent to calling the CreateErrorDesignTimeHtml(String,Exception) method with e set to a null reference (Nothing in Visual Basic).

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: