Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!(VisitManager.GetCurrentVisitor().IsLogined_Admin))
     {
         Response.Write("<script>alert('你还未登录或登录信息已过期!');location.href=\"Login.aspx\";</script>");
     }
 }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     bool[][] auths = VisitManager.GetCurrentVisitor().AdminAuthorities;
     if (auths == null || auths[1] == null)
     {
         Response.Write("<script>alert('你没有权限查看此页!');</script>");
     }
 }