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
Are you sure you included the correct JS files? Because in Phill Haack's post it has MicrosoftMvcJQueryValidation.js
attached instead of MicrosoftMvcValidation.js
.
He also sets the ClientValidationFunction
property in the view :
<% ViewContext.FormContext.ClientValidationFunction
= "EnableClientValidation"; %>
Though that was not RC, but Beta.