Method | Description | |
---|---|---|
CompareAttribute ( string otherProperty ) : System |
Initializes a new instance of the T:System.Web.Mvc.CompareAttributeclass. ErrorMessage is set to: '{0}' and '{1}' do not match.
|
|
CompareAttribute ( string errorMessage, string otherProperty ) : System |
Initializes a new instance of the T:System.Web.Mvc.CompareAttribute class.
|
|
FormatErrorMessage ( string name ) : string |
Applies formatting to a specified error message.
|
public CompareAttribute ( string otherProperty ) : System | ||
otherProperty | string | The property to compare with the current property. |
return | System |
public CompareAttribute ( string errorMessage, string otherProperty ) : System | ||
errorMessage | string | An error message to associate with a validation control if validation fails. |
otherProperty | string | The property to compare with the current property. |
return | System |
public FormatErrorMessage ( string name ) : string | ||
name | string | The name of the field that caused the validation failure. |
return | string |