protected void Page_Load(object sender, EventArgs e) { IControlRoomMaster masterPage = (IControlRoomMaster)Master; //masterPage.PageRibbon.DataBind(); masterPage.PageTitle = "<br> STG Summer Reading Program - Control Room<BR> Access Permission Error"; masterPage.PageError = "You do not have permission for the screen, feature or function you were trying to access."; masterPage.DisplayMessageOnLoad = true; }
protected override void OnPreLoad(EventArgs e) { MasterPage = (IControlRoomMaster)Master; if (MasterPage != null) { MasterPage.IsSecure = true; } SRPUser = (SRPUser)Session[SessionData.UserProfile.ToString()]; //UserPermissions = (List<SRPPermission>)Session[SessionData.PermissionList.ToString()]; UserPermissionList = (string)Session[SessionData.StringPermissionList.ToString()]; base.OnPreLoad(e); }
protected void Page_Load(object sender, EventArgs e) { if (Session[SessionData.IsLoggedIn.ToString()] == null || (bool)Session[SessionData.IsLoggedIn.ToString()] == false) { Response.Redirect("Login.aspx"); } IControlRoomMaster masterPage = (IControlRoomMaster)Master; //masterPage.PageRibbon.DataBind(); masterPage.PageTitle = "Great Reading Adventure - Control Room<BR> Access Permission Error"; masterPage.PageError = "You do not have permission for the screen, feature or function you were trying to access."; masterPage.DisplayMessageOnLoad = true; }
protected void Page_Load(object sender, EventArgs e) { if (Session[SessionData.IsLoggedIn.ToString()] == null || (bool)Session[SessionData.IsLoggedIn.ToString()] == false) { Response.Redirect("Login.aspx"); } IControlRoomMaster masterPage = (IControlRoomMaster)Master; //masterPage.PageRibbon.DataBind(); var sysName = Session[CRSessionKey.SystemName]; if (sysName == null || string.IsNullOrWhiteSpace(sysName.ToString())) { sysName = "Great Reading Adventure - Control Room"; } else { sysName = string.Format("{0} - Control Room", sysName); } masterPage.PageError = "You do not have permission for the screen, feature or function you were trying to access."; masterPage.DisplayMessageOnLoad = true; }
protected void Page_Load(object sender, EventArgs e) { IControlRoomMaster masterPage = (IControlRoomMaster)Master; //masterPage.PageRibbon.DataBind(); masterPage.PageTitle = "Application Error"; masterPage.PageError = "There has been an application error."; masterPage.DisplayMessageOnLoad = true; Exception ex = (Exception)Session[SessionData.LastException.ToString()]; if (ex != null) { uxExceptionMessage.Text = ex.Message; if (null != ex.InnerException) { uxExceptionMessage.Text += string.Format(" - {0}", ex.InnerException.Message); } uxStackTrace.Text = ex.StackTrace.Replace("\n", "<br/>"); } }
protected override void OnPreLoad(EventArgs e) { MasterPage = (IControlRoomMaster)Master; if(MasterPage != null) MasterPage.IsSecure = true; SRPUser = (SRPUser)Session[SessionData.UserProfile.ToString()]; //UserPermissions = (List<SRPPermission>)Session[SessionData.PermissionList.ToString()]; UserPermissionList = (string)Session[SessionData.StringPermissionList.ToString()]; base.OnPreLoad(e); }
protected void Page_PreInit(object sender, EventArgs e) { IControlRoomMaster masterPage = (IControlRoomMaster)Master; masterPage.IsSecure = true; }