BaseValidator::ErrorMessage Property
Gets or sets the text that will be used for the error message. The default value is Empty.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
[BindableAttribute(true)] public: virtual property String^ ErrorMessage { String^ get () sealed; void set (String^ value) sealed; }
<asp:BaseValidator ErrorMessage="String" />
Implements
IValidator::ErrorMessageThis 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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.