Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the error message text generated when control validation fails.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Property ErrorMessage As String
Get
Set
'Usage
Dim instance As DateTimeControl
Dim value As String
value = instance.ErrorMessage
instance.ErrorMessage = value
public string ErrorMessage { get; set; }
Property Value
Type: System.String
A string that represents the error message text.
Implements
Remarks
Use the IsValid property and ErrorMessage property to override the Validate method and provide server-side validation for the control.