Redirecting from cshtml page

前端 未结 4 1019
执念已碎
执念已碎 2020-12-18 18:12

I want to redirect to a different view depending on the result of a dataset, but I keep getting returned to the page I am currently on, and can\'t work out why. I drop into

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-18 19:06

    Change to this:

    @{ Response.Redirect("~/HOME/NoResults");}
    

提交回复
热议问题