stirng _s="<script language='javascript'>";
_s+="alert('您的权限不够!');"
_s+="window.location.href='AnotherPage.aspx';";
_s+="</script>";Response.Write(_s);

解决方案 »

  1.   

    Response.Write("<script language='jscript'>if(confirm('...')){...}else{...};</script>")
      

  2.   

    if 判断权限<>不够权限 then
        Response.Write("<script language='jscript'>alert('您的权限不够,无法访问此功能!')</script>");
    end if
      

  3.   

    不好意思,上面写的少了打了几个字母...if 判断权限<>不够权限 then
        Response.Write("<script language='jscript'>alert('您的权限不够,无法访问此功能!');window.history.back();</script>");
    end if
      

  4.   

    Response.Write("confirm('您的权限不够,无法访问此功能!')");
    改为:
    Response.Write("alert('您的权限不够,无法访问此功能!')");
      

  5.   

    Response.Write("<script language='jscript'>alert('您的权限不够,无法访问此功能!');window.history.back(-1);</script>");