afr0
afr0

Reputation: 888

IClientValidatable with MVC 4

I'm looking for sample implementation/documentation of How to use IClientValidatable with MVC4 and jQuery.Validation. I've found this very good resource having everything here.

http://msdn.microsoft.com/en-us/vs2010trainingcourse_aspnetmvccustomvalidation_topic3.aspx

but problem with that with MVC4 there is no such thing as MicrosoftMvcValidation.js with mvc 4 project default script. And I need to have custom validation for client and server. so any documentation/codesnippet/how-to-guidelnes will be very much appreciated.

Upvotes: 1

Views: 2453

Answers (1)

Karthik Chintala
Karthik Chintala

Reputation: 5545

Try using these scripts files that would work with IClientValidatable

<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>

These are in Scripts folder of your project you can reference these scripts to get it work

Upvotes: 2

Related Questions