I am developing a fully functional web application and I am using the ASP.NET MVC 3 framework. I am implementing a subclass ActionFilterAttribute.
I redefine the method OnActionExecuting. If an exception hits the method OnActionExecuting, I want to redirect the client browser. The redirect URL targets an action method in one of my controllers. I want to pass data from an object Exceptionto a redirect URL.
Is there a way to create a url including an object Exceptionand then pass the url to the constructor RedirectResult?
source
share