ASP.NET MVC Quick Tip: Check Data Annotations from code

added by MatthiasJ
5/2/2010 12:35:39 PM


This blog post shows how you can check defined data annotations from your custom code with a focus on ASP.NET MVC 2 (but not bound on that). It also describes WHY it's necessary to check data annotations from MVC controller actions and why you can't rely on the automatic checking through the model binding phase when posting a form to your controller.