This topic has not yet been rated - Rate this topic

CompareAttribute.FormatErrorMessage Method

Applies formatting to an error message based on the data field where the compare error occurred.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public override string FormatErrorMessage(
	string name
)

Parameters

name
Type: System.String
The name of the field that caused the validation failure.

Return Value

Type: System.String
The formatted error message.
Did you find this helpful?
(1500 characters remaining)