protected override void OnLoad(EventArgs e) > { > // *** Check to see if we're logged in - if not ask for login page > if (this.RequiresSecurity && this.SecurityUserPk == null) > { > this.RedirectToLogin(); > return; > } > > if (this.RequiresSecurity) > { > // Overriding the OnLoad method specifically here to implement Role Based Security > // on the logged in user for this Admin form, must be in the Admin role to access the page. > > // Register the BO > this.oUtility = (Utility)this.RegisterBizObj(new Utility()); > > if (oUtility.CheckAdminUser((int)this.SecurityUserPk)) > { > // call the parent functionality > base.OnLoad (e); > > // continue > return; > > } > else > { > // back to the login after alerting the user > mmMessageDisplay.DisplayMessage(Context,"Administration Access Denied","Your Login credentials do not allow Admin Access.; > See the System Administrator for Admin Access.","UserLogin.aspx?Url=/SS/MMSS/StandardsStudio/admin.aspx",4 ); > return; > } > } > > this.BindData(); > > > }>