BaseValidator.ErrorMessage Property

Gets or sets the text that will be used for the error message. The default value is Empty.

Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in system.web.mobile.dll)

[BindableAttribute(true)] 
public:
virtual property String^ ErrorMessage {
	String^ get () sealed;
	void set (String^ value) sealed;
}
/** @property */
public final String get_ErrorMessage ()

/** @property */
public final void set_ErrorMessage (String value)

public final function get ErrorMessage () : String

public final function set ErrorMessage (value : String)

Not applicable.

Property Value

The text that will be used for the error message.

This property is used in two ways. First, if there is no value for the Display property, the value of the ErrorMessage property is used in its place. Second, when the ValidationSummary control is used, the summary uses the value of the ErrorMessage property for each validator that represents an invalid control.

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show: