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

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;

 

posted @ 2007-11-01 12:01  李济宏(Amadeus)  阅读(140)  评论(0编辑  收藏  举报