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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -