码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2019-06-10 13:34:45      阅读:365      评论:0      收藏:0      [点我收藏+]

标签:home   提示框   win   oca   content   art   csdn   sdn   用户   

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

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

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

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

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

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

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

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

标签:home   提示框   win   oca   content   art   csdn   sdn   用户   

原文地址:https://www.cnblogs.com/fzqm-lwz/p/10997095.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!