I am using Ajax.BeginForm(...
in asp.net MVC 2.0
I would like to return HTTP status codes from my controller.
For example:
- 400 (validation error)
- 200 (if everything is OK)
I would like to use new AjaxOptions{UpdateTargetID="ajax-form", OnSuccess="...", OnFailure="..."}
to handle these scenarios, however If I return a statuscode of 400 the UpdateTarget does not update my html.
Is there a way to have this update occur for "failures" as well as successes?