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.
Defines a validation test that test user input against the value of another field.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Shared Function EqualsTo ( _
otherFieldName As String, _
errorMessage As String _
) As IValidator
'Usage
Dim otherFieldName As String
Dim errorMessage As String
Dim returnValue As IValidator
returnValue = Validator.EqualsTo(otherFieldName, _
errorMessage)
public static IValidator EqualsTo(
string otherFieldName,
string errorMessage
)
public:
static IValidator^ EqualsTo(
String^ otherFieldName,
String^ errorMessage
)
static member EqualsTo :
otherFieldName:string *
errorMessage:string -> IValidator
public static function EqualsTo(
otherFieldName : String,
errorMessage : String
) : IValidator
Parameters
- otherFieldName
Type: System.String
The other field to compare.
- errorMessage
Type: System.String
The error message to display if validation fails.
Return Value
Type: System.Web.WebPages.IValidator
The validation test.