Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is DetailsView.EnableModelValidation?

The MSDN documentation on DetailsView.EnableModelValidation is very brief:

Gets or sets a value that indicates whether data-model validation is enabled.

Figuring out that true means enabled and false means disabled is simple, I could have found out even without the documentation.

What functionality is enabled with this setting and how is it used?

like image 809
Anders Abel Avatar asked Oct 28 '11 10:10

Anders Abel


1 Answers

http://blogs.msdn.com/b/davidebb/archive/2008/06/18/using-asp-net-dynamic-data-with-objectdatasource.aspx

Check out this link, it is for validating the properties on an ObjectDataSource when decorating with System.ComponentModel.DataAnnotations

like image 72
iain Avatar answered Sep 26 '22 21:09

iain