Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     RegisterSessionTimeOutScript();
     globalWebMenu1 =
         (PubEntAdmin.UserControl.AdminMenu) this.LoadControl("~/UserControl/AdminMenu.ascx");
     globalWebMenu1.ID = "globalMenu1";
     this.topContent.Controls.Add(globalWebMenu1);
 }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            RegisterSessionTimeOutScript();
            if (HttpContext.Current.Session[PubEntAdminManager.JS] == null)
            {
                if (PubEntAdminManager.TamperProof)
                {
                    if (PubEntAdminManager.ContainURLQS(PubEntAdminManager.JS))
                    {
                        if (String.Compare(PubEntAdminManager.GetURLQS(PubEntAdminManager.JS), "1", true) == 0)
                        {
                            HttpContext.Current.Session[PubEntAdminManager.JS] = "true";
                        }
                        else
                        {
                            HttpContext.Current.Session[PubEntAdminManager.JS] = "false";
                        }
                    }
                }
                else
                {
                    if (Request.QueryString[PubEntAdminManager.JS] != null)
                    {
                        if (String.Compare(Request.QueryString[PubEntAdminManager.JS].ToString(), "1", true) == 0)
                        {
                            HttpContext.Current.Session[PubEntAdminManager.JS] = "true";
                        }
                        else
                        {
                            HttpContext.Current.Session[PubEntAdminManager.JS] = "false";
                        }
                    }
                }
            }
            else
            {
                HttpContext.Current.Session[PubEntAdminManager.JS] = HttpContext.Current.Session[PubEntAdminManager.JS];
            }

            globalWebMenu1 =
                (PubEntAdmin.UserControl.AdminMenu) this.LoadControl("~/UserControl/AdminMenu.ascx");
            globalWebMenu1.ID = "globalMenu1";
            this.topContent.Controls.Add(globalWebMenu1);
        }