Using jQuery for client side validation in MVC2 RTM

Posted by tigermain on Stack Overflow See other posts from Stack Overflow or by tigermain
Published on 2010-05-02T13:25:20Z Indexed on 2010/05/02 13:37 UTC
Read the original article Hit count: 248

Scott Gu's tutorial on Model validation gets us all set up with the MS client side validation using the following scripts:

<script src="../../Scripts/jquery.validate.min.js" type="text/javascript"></script>
<script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>

However I've seen various posts allowing us to utilise jQuery instead with the following code:

<script src="" type="text/javascript"></script>
<script src="" type="text/javascript"></script>
<script src="<%= Url.Content("~/scripts/MicrosoftMvcJQueryValidation.js") %>" type="text/javascript"></script> 

However MicrosoftMvcJQueryValidation.js does not ship with the solution and from what I read it should be part of the Futures pack which is no longer available on CodePlex.

I managed to find a version alongside jQuery 1.3.2 but it does not work.

What is the forward going solution!?

© Stack Overflow or respective owner

Related posts about c#

Related posts about mvc2