Export (0) Print
Expand All

Validator::EqualsTo Method

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)

public:
static IValidator^ EqualsTo(
	String^ otherFieldName, 
	String^ errorMessage
)

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.
Show:
© 2014 Microsoft