Click here to Skip to main content
15,905,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a MVC 5 application.

In my page I have an ADD button which will pop up a window (jquery dialog) and render the ADD view inside that. If the user clicks the Add button it will update the DB and redirect to the grid page. But if there are any validation errors (including the server side validations), I am returning the same view with the model having errors. But it is closing the popup and showing in a standalone page.

My requirement is to show the validation errors against the controls by retaining the popup.

Can anyone please help on this ?
Posted
Updated 8-Aug-15 17:07pm
v2

1 solution

you need to set flag to determine from is submit or general render view . if the form validation failed return error message check on the and show popup.
 
Share this answer
 

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