弹出提示框,在跳转

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

猜你喜欢

转载自www.cnblogs.com/fzqm-lwz/p/10702351.html