This topic has not yet been rated - Rate this topic

CompareAttribute.FormatPropertyForClientValidation Method

Formats the property for client validation by prepending an asterisk (*) and a dot.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public static string FormatPropertyForClientValidation(
	string property
)

Parameters

property
Type: System.String
The property.

Return Value

Type: System.String
The string "*." is prepended to the property.
Did you find this helpful?
(1500 characters remaining)