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

前端 未结 5 1434
清歌不尽
清歌不尽 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:04

    Add

    filterContext.HttpContext.Response.Clear();
    

    at first and this at End :

    filterContext.HttpContext.Response.End();
    

    Hope this helps.

提交回复
热议问题