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

阅读 127

2022-09-09


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)

0 0 举报