コード例 #1
0
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);

            SuppliersMasterPage master = Master as SuppliersMasterPage;

            //master.CheckAuthenticated();
            VerifyAccessToThisPage();

            System.Web.HttpBrowserCapabilities browser = Request.Browser;
            if (browser.Browser == "IE" && browser.MajorVersion < 7)
            {
                if (Request.CurrentExecutionFilePath != @"/UnsupportedBrowser.aspx" && Request.CurrentExecutionFilePath != @"/Login.aspx")
                {
                    Response.Redirect(@"/UnsupportedBrowser.aspx", true);
                }
            }
            else
            {
                if (Request.CurrentExecutionFilePath == @"/UnsupportedBrowser.aspx")
                {
                    Response.Redirect(@"/", true);
                }
            }
        }
コード例 #2
0
 protected virtual void VerifyAccessToThisPage()
 {
     SuppliersMasterPage master = Master as SuppliersMasterPage;
     //master.LimitToPermissions(AllowedPermissions);
 }