0
点赞
收藏
分享

微信扫一扫

【Vegas原创】.net中,WebForm的alert


Response.Write("<script>alert('非主管考核期间,不可以进入,谢谢配合!');locatinotallow='../main.aspx'</script>");
Response.Write("<script> alert ('对不起,您的权限不足,请联系管理员');window.parent.frames.main.locatinotallow='../main.aspx';</script>");


当多个Alert出现,或是下句要写Response.Redirect ""语句,此Alert将不相应。

解决方法:alert下一句加return Response.Write("<script language='javascript'>alert('对不起,该同仁没有上此课!'); locatinotallow='" + location + "'</script>");
return;

 

举报

相关推荐

0 条评论