弹出提示框,在跳转

var script = String.Format("<script>alert('别逗了,作业还没选中就上传?');location.href='{0}'</script>", Url.Action("StudentCollection", "Student"));
return Content(script, "text/html");

posted @ 2019-04-13 18:34  风葬秋暝  阅读(232)  评论(0编辑  收藏  举报