Response.Write("<script>alert('非主管考核期间,不可以进入,谢谢配合!');location='../main.aspx'</script>"); Response.Write("<script> alert ('对不起,您的权限不足,请联系管理员');window.parent.frames.main.location='../main.aspx';</script>"); 当多个Alert出现,或是下句要写Response.Redirect ""语句,此Alert将不相应。 解决方法:alert下一句加return Response.Write("<script language='javascript'>alert('对不起,该同仁没有上此课!'); location='" + location + "'</script>");return;