I am working on a MVC.NET 2.0 project, where I am trying to include special error handling logic in a special OnException control procedure. Basically I want to be able to determine the type of the result of the controller method in which the unhandled exception was handled so that I can return error data in a specific type-dependent format (json for JsonResult and html for ActionResult). Can someone tell me a way to define this type? I would really appreciate any help.
Thanks in advance
asp.net-mvc controller
Chris dellinger
source share