protected override void OnPreInit(EventArgs e) { //admin user validation if (this.AdministratorSecurityValidationEnabled && !ValidateAdministratorSecurity()) { string url = SEOHelper.GetAdminAreaLoginPageUrl(); Response.Redirect(url); } //page security validation if (!ValidatePageSecurity()) { string url = SEOHelper.GetAdminAreaAccessDeniedUrl(); Response.Redirect(url); } if (this.IPAddressValidationEnabled && !ValidateIP()) { Response.Redirect(SEOHelper.GetAdminAreaAccessDeniedUrl()); } base.OnPreInit(e); }