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); } } }
protected virtual void VerifyAccessToThisPage() { SuppliersMasterPage master = Master as SuppliersMasterPage; //master.LimitToPermissions(AllowedPermissions); }