ASP.NET MVC action filters: Setting the filterContext.Result in a filter prevents other filters from being executed?

An HttpStatusCodeResult does not end up being a redirect, it simply tells ASP. NET MVC to serve up a Response with the specified status code. – Diego Oct 29 '10 at 23:51.

I ended up fixing it by making Redirect a IResultFilter and writing the following in OnResultExecuting: filterContext.HttpContext.Response. Redirect(url).

When you set HttpStatusCodeResult you are setting a redirect, so the second filter won't execute (because you already have redirected).

I ended up fixing it by making Redirect a IResultFilter and writing the following in OnResultExecuting.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions