ASP.NET MVC: Is it "wrong" to use HTTP 500 via an AJAX request to return invalid form content?
- by Daniel Schaffer
Here's the situation:
I've got two partial views. One has a form.
What needs to happen is when the form is posted via an AJAX request, if the operation succeeds, the area with the second partial is repopulated with the content. However, if the posted data was invalid, the original partial is repopulated with an error message.
I'm using jQuery…