This project is read-only.

Client side validation not working

Oct 27, 2009 at 7:27 PM
Edited Oct 29, 2009 at 10:37 AM


Please ignore this. After and good night sleep and (more importantly) restarting my computer things started working. Weird!



I was trying xVal in my new ASP.NET MVC project. For some reason the client side validation is not working.

I can see that <%= Html.ClientSideValidation<DataAccess.Agency>("agency") %> generates some javascript markup in the page. xVal also registers the jQuery Validator functions but validation does not occur on submit button click.

To eliminate the possibility of some error in my code, I downloaded the sample solution from - When I run the code without any changes, I find that client side validation is not working here as well!

I have tried both in IE8, Firefox 3.5 and Chrome 3. None worked!

Can someone help please?