ASP MVC 后台控制器弹出框提示

提示框点击确定后页面变成空白页面

return Content("<script>alert('请先登录');</script>"); 

提示框点击确定后页面变成你想要的页面(如实原页面怎会刷新一下)

return Content("<script>alert('请先登录');window.location.href='../home/index';</script>");  

提示框点击确定后页面返回原页面(不刷新,还保留页面用户输入的数据)

return Content("<script>alert('请先登录');history.go(-1);</script>");  

原文地址   http://blog.csdn.net/agonie201218/article/details/45825171

不忘初心
原文地址:https://www.cnblogs.com/hongjiang/p/8409423.html