Partager via


FormContext.ReplaceValidationSummary Property

Determines whether client validation errors should be dynamically added to the validation summary.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Property ReplaceValidationSummary As Boolean
    Get
    Set
public bool ReplaceValidationSummary { get; set; }
public:
property bool ReplaceValidationSummary {
    bool get ();
    void set (bool value);
}

Property Value

Type: System.Boolean
true if client validation errors should be added to the validation summary; otherwise, false.

Remarks

If this property is set to false, client validation will not add errors to the summary. However, the errors will be shown next to the input fields.

See Also

Reference

FormContext Class

System.Web.Mvc Namespace