Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I try to use model base clientSide validation in MVC 5 on my partial view and i add

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


references on my layout page but that is not able to work.
but when i add the references on that partial view its working well.
how it is possible to use layout page references.
Posted

1 solution

You should be able to add them to the layout, just make sure they appear after the reference to jquery. If it's still not working you'll need to post the script references in context.
 
Share this answer
 
Comments
Member 11247784 15-Sep-15 12:00pm    
what is context mean?
sir i add the reference after the jquery reference but it is not work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900