asp.net mvc - How do I use MVC HandleError attribute with JQueryUI Dialog? -
i have handleerror attribute working normally, however:
i have jqueryui dialog displays partial view. if generate error in action dialog remains blank , no redirect error.aspx page.
what need work?
in case exception inside controller action handleerror
attribute catches exception , renders error
view. problem sets statuscode 500. when jquery sees status code considers request failed , doesn't bother show contents. on way workaround write custom error handler attribute deriving standard 1 , overriding onexception method setting status code 200 when rendering error view.
Comments
Post a Comment