Error in sample in wiki page on codeplex

Apr 9, 2010 at 8:50 AM

Instead of:

ModelState.AddModelError("_FORM", ....

Should be:

ModelState.AddModelError("", ...

 

As of ASP.NET MVC 2, model level errors must be with name "", not "_FORM".