当第一次载入页面时,会对页面读取权限检查,用了三个方法都不理想
if (!CanRead())
            {
                //指向代码
            }
1.为false时,直接用下面代码指向无权限显示页面(麻烦,又得点击别的页面)                
Response.Redirect("../../UnAuthPage.aspx");
Response.End();
2.页面有一个Label控件lblStricp 如下则弹出对话框后 页面反白(难看)
   (a)lblScript.Text = "<script language='javascript'>alert('Sorry!You have no right!');history.go(-1);</script>";
   (b)ClientScript.RegisterStartupScript(this.GetType(), "window", "<script language=javascript>alert('Sorry,You Have No Right!');history.go(-1);</script>"); 
3.想用confirm,试了半天没成功
如:lblScript.Text = "<script>if( confirm('Sorry!You have no right!Enter?')){location.href = '../../unauthPage.aspx'}else{history.go(-1);}</script>";
大家给个好的方法吧: 弹出提示框 页面不反白的!