UrlValidator.DefaultMessagePrefix Property
Gets the default name of object to be displayed in error messages.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected MustOverride ReadOnly Property DefaultMessagePrefix As String
Get
'Usage
Dim value As String
value = Me.DefaultMessagePrefix
protected abstract string DefaultMessagePrefix { get; }
Property Value
Type: System.String
Remarks
The message for an illegal character is “{0} cannot contain any of the following characters: " # % & * : < > ? \ { } ~”
The {0} is replaced with the MessagePrefix to provide the user with context for which control or field contains the error.
Example: “URL name cannot contain any of the following characters: " # % & * : < > ? \ { } ~”