Within my ASP.Net Core application, I am faced with the need to utilize validation on both the server side and client side in a bootstrap modal form. While I have successfully implemented server side validation, I have encountered difficulties when it comes to implementing client side JavaScript validation.
Despite following and attempting everything outlined in various resources, such as:
- Manually registering the form with unobtrusive validation
- Ensuring my modal form is included in the DOM
- Implementing Unobtrusive Client Side Validation in ASP.NET Core
I have also verified that the necessary JavaScript files are included in the correct sequence:
<script src="js/jquery.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/jquery.validate.unobtrusive.min.js"></script>
<script src="js/jquery.unobtrusive-ajax.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/site.js"></script>
In order to assist further, I have shared a sample project on Github-Repository, where the server side validation functions correctly without any issues.
What steps should I take to ensure successful implementation of client side validation?