Contents tagged with Validation
-
Exploring Dynamic Data: The DataTypeAttribute for Business Logic
-
Exploring Dynamic Data: Validation attributes for business logic
-
The CustomValidationAttribute
.net 4 introduces the CustomValidationAttribute, a member of System.ComponentModel.DataAnnotations that supports validation of your business logic. Until now, validation rules were limited based on the available attributes (required, stringlength, regex, and range) plus those you created by subclassing System.ComponentModel.DataAnnotations.ValidationAttribute. CustomValidationAttribute lets you define new validation rules directly on your Entity class (or the class of your choice) without having to subclass from ValidationAttribute.
-
Validating CheckBoxLists when using ClientIDMode=Predictable
A common question on the www.asp.net forums asks how to validate a CheckBoxList control. There are two cases: