0

I am working on an App that uses popups for add forms (this can't be changed).

When an add form is submitted jQuery captures the submit, and does an Ajax post to the server. There is custom validation on the ViewModel that is called when the submit happens. If there is an error, I need to return the rendered partial with the errors shown in the validation summary.

I have tried various approaches including returning the partial view and replacing the modal dialog (this gets me close).

If there is no errors then we would need to do an action (hide a model dialog).

Burt
  • 7,590
  • 18
  • 70
  • 125
  • @Matt, thanks for the feedback, edited – Burt Nov 08 '13 at 22:23
  • 1
    http://stackoverflow.com/questions/18667447/return-partial-view-and-json-from-asp-net-mvc-action here they are returning a partial view and json. Maybe you can use this and populate your partial or your action based on the json sent. hope it helps – Matt Bodily Nov 08 '13 at 22:55

0 Answers0