I am using partial in pop-up modal, and I wanted to do a server validation but I want the modal will stay, is it possible without reloading?
I am using "Ajax.BeginForm". Thanks
Answered by:- vikas_jk
Here the another solution for you with tested example
Refer the linked article, which will help you to keep bootstrap pop-up modal opened even after saving the details correctly.
Answered by:- manish
You can validate your modal pop in MVC, and can stay it open, using jquery Unobtrusive Validation, you can read about this in a similar issue here
https://forums.asp.net/t/1977530.aspx?Unobtrusive+Validation+Within+Modal+PopUp
Or you can use this client side validation using jquery ajax to validate your form before submitting
Hope this helps, please upvote/comment on this answer, if this work or if you find any issue with this answer
Subscribe to our weekly Newsletter & Keep getting latest article/questions in your inbox weekly