I can\'t seem to get any client side validation working on a MVC 2 RC app.
My model has the following:
public class ExampleModel
{
[Required(Erro
You have to include MicrosoftMvcJQueryValidation.js file :
Check this: Where is the right version of MicrosoftMvcJQueryValidation.js for MVC 2 beta 2?
Next just put Html.EnableClientValidation();
somewhere in the View page.
It must be before the first form you want to client-side validate. I prefer Site.Master page.
Working on ASP.NET MVC 2 RC.