I’m a big fan of ASP.net MVC especially all of the native features and conventions built in. One of my favorite features has always been how easy it is to set up client and server side validation within MVC via some simple attributes on my models. While there are a lot of built in validations I find myself writing custom validation for many of the same scenarios over and over…so why not share that with everyone!
I’m proud to introduce the MVC Validation Extensions nuget package. This package provides additional validation attributes with client side and server side support starting with the following 5:
- GreaterThan
- GreaterThanEqualTo
- LessThan
- LessThanEqualTo
- RequiredIf
For more details and examples head on over to the project page. If you have any suggestions additional attributes let us know!