In the first article (Validation Techniques Comparison) we just considered the most useful and the best techniques that could be used for validation implementation in ASP.NET MVC.
We don’t want to deprive you of a pleasure of doing all this by yourself, so we will just give you a direction and some samples of implementation and let you dig deeper .
So, today’s agenda is:
- Manual validation in Model Binder and Controllers (client validation type 1 and server validation type 1)
- DataAnnotations (client validation type 2, server validation type 2);
- Custom Validation engine implementation (client validation type 1, server validation type 2);
- Spring Validation Framework usage on a server, manual validation on a client (client validation type 1, server validation type 3)
- Spring Validation Framework usage on a server, DataAnnotations + manual validation on a client (it’s a mix from several points from previous review);
- xVal Validation Framework