Client side validation not working

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

EDIT :

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

 

Hi,

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 - http://blog.codeville.net/blogfiles/2009/January/BookingsDemo.zip. 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?

Thanks!