DCSIMG
ValidationAttribute,C# - Shimmy on .NET

Browse by Tags

All Tags » ValidationAttribute » C# (RSS)

RequiredAttribute that validates collection fields by Shimmy

The System.ComponentModel.DataAnnotations namespace includes great classes for all that concerns validation and UI matters, for every .NET technology, especially ASP.NET MVC and Silverlight RIA Services . I think that the most used class of this namespace is the RequiredAttribute , that validates a field against nullity, or that a string should not be empty or whitespace. Today I created a class that has a List<T> (same applies to arrays, collections etc.) property, and I wondered if the RequiredAttribute...
Powered by Community Server (Commercial Edition), by Telligent Systems