I’m leaving my musings on Linq-to-Sql for a moment and returning to dynamic data to cover off the validation attributes.
The table below lists the available attributes;
|RangeAttribute||Specifies the numeric range constraints for the value of a data field in Dynamic Data.|
|RegularExpressionAttribute||Specifies that a data field value in ASP.NET Dynamic Data must match the specified regular expression.|
|RequiredAttribute||Specifies that a data field value is required.|
|StringLengthAttribute||Specifies the maximum length of characters that are allowed in a data field.|
To use these attributes you use them on a meta data class just like you do for the display attributes.
Over the next few posts I’m going to detail each of these attributes.