This question is locked. New answers and comments are not allowed.
Hello, i'm trying to implement a exception handling system on my application.
But i'm getting an error on firebug related to grid
syntax error
what i'm trying to do catch all exception custom or not and on base controller send it a custom ascx file that will present my custom error messages.
i'm using a base controller whit the following
| protected override void OnException(ExceptionContext filterContext) |
| { |
| // Output a nice error page |
| if (filterContext.HttpContext.IsCustomErrorEnabled) |
| { |
| filterContext.ExceptionHandled = true; |
| this.View("Error", filterContext).ExecuteResult(this.ControllerContext); |
| } |
| } |
than on my child controller i have an action that is responsible for insert a new row in database,
i have a try catch block that will catch sqlexception and throw a custom exception
after that the OnException of base controller is called and so the Error View ascx, on firebug i see the response containing the Error View Html but it is not rendered and the js error is showed in firebug.
someone now how to achieve this?
Best Regards
Marco