コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            IControlRoomMaster masterPage = (IControlRoomMaster)Master;

            //masterPage.PageRibbon.DataBind();

            masterPage.PageTitle            = "<br> &nbsp;STG Summer Reading Program - Control Room<BR> &nbsp;Access Permission Error";
            masterPage.PageError            = "You do not have permission for the screen, feature or function you were trying to access.";
            masterPage.DisplayMessageOnLoad = true;
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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> &nbsp;Access Permission Error";
            masterPage.PageError            = "You do not have permission for the screen, feature or function you were trying to access.";
            masterPage.DisplayMessageOnLoad = true;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
        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/>");
            }
        }
コード例 #6
0
        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);
        }
コード例 #7
0
        protected void Page_PreInit(object sender, EventArgs e)
        {
            IControlRoomMaster masterPage = (IControlRoomMaster)Master;

            masterPage.IsSecure = true;
        }