MVC validation part 1: Custom unobtrusive validation using attributes
The validation process you get from MVC is pretty damn sweet. Just annotate your class, or entity for that matter, and you get instant validation in both your views and in your repository. It’s easy...
View ArticleMVC Validation 2: Validating for column uniqueness
I find a common problem is handling the case of a column needing to be unique and how to handle this validation scenario. It’s easy enough to set a constraint in the backing SQL server, but handling...
View ArticleMVC Validation 3: Unobtrusive validation in Ajax-loaded partial views
It’s a pretty good idea usually to not reload the entire page, but if you use MVCs now-standard unobtrusive validation you’ll find that the validation does not work on the partial you’ve just loaded....
View ArticleMVC Validations 4: Whole class business object attribute validations
Sometimes you need to validate an object where the column data itself isn’t enough to determine if the object is valid from a business perspective. However, this doesn’t mean you have to abandon...
View Article