ASP.NET MVC : Response.Redirect(url, TRUE) does not stop request processing

前端 未结 5 1426
清歌不尽
清歌不尽 2020-12-16 15:43

I have a method decorated with two custom ActionFilterAttribute.

[RequiresAuthentication(Order = 1)]
[ToonAction(Order = 2)]
public ActionResult Browse(...
         


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-16 16:05

    Add this code before you redirect the page.

    filterContext.ExceptionHandled = true;
    

提交回复
热议问题