Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EnableModelValidation Property

FormView.EnableModelValidation Property

Gets or sets a value that indicates whether a validator control will handle exceptions that occur during insert or update operations.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public virtual bool EnableModelValidation { get; set; }

Property Value

Type: System.Boolean
true if a validator control will handle exceptions that occur during insert or update operations; otherwise, false. The default is false.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1, 3.0 SP2, 2.0 SP2
Show:
© 2015 Microsoft