protected void Page_Load(object sender, EventArgs e) { if (PubEntAdminManager.TamperProof) { if (PubEntAdminManager.ContainURLQS(PubEntAdminManager.strUnauthorizedDetail)) { this.lblreason.Text = PubEntAdminManager.GetURLQS(PubEntAdminManager.strUnauthorizedDetail); } else { this.lblreason.Text = String.Empty; } } else { if (Request.QueryString[PubEntAdminManager.strUnauthorizedDetail] != null) { this.lblreason.Text = Request.QueryString[PubEntAdminManager.strUnauthorizedDetail].ToString(); } else { this.lblreason.Text = String.Empty; } } }
protected void Page_Load(object sender, EventArgs e) { if (Session.IsNewSession) { Response.Redirect("Home.aspx"); } this.Title = "Look Up Table Management"; this.PageTitle = "Look Up Management"; this.AddJS("../JS/LUMgmt.js"); ClientScript.RegisterHiddenField("__SCROLLLOC", "0"); if (!ClientScript.IsClientScriptBlockRegistered("ClientSmartNavSaveScrollScript")) { SaveScrollLocation.Append("<script type='text/javascript' language='javascript'>"); SaveScrollLocation.Append("function SaveScrollLocation () {"); SaveScrollLocation.Append(" document.forms[0].__SCROLLLOC.value = document.documentElement.scrollTop;"); SaveScrollLocation.Append("}"); SaveScrollLocation.Append("document.body.onscroll=SaveScrollLocation;"); SaveScrollLocation.Append("</script>"); ClientScript.RegisterStartupScript(this.GetType(), "ClientSmartNavSaveScrollScript", SaveScrollLocation.ToString(), false); } if (!Page.IsPostBack) { Session.Remove(PubEntAdminManager.strTabContentLUCurrActTabIndex); } else { this.SecVal(); if (!ClientScript.IsClientScriptBlockRegistered("ClientSmartNavSetScrollScript2")) { SetScrollLocation.Append("<script type='text/javascript' language='javascript'>"); SetScrollLocation.Append("function SetScrollLocation () {"); SetScrollLocation.Append(" document.documentElement.scrollTop = " + Request["__SCROLLLOC"] + ";"); SetScrollLocation.Append("}"); SetScrollLocation.Append("document.body.onload=SetScrollLocation" + ";"); SetScrollLocation.Append("</script>"); ClientScript.RegisterStartupScript(this.GetType(), "ClientSmartNavSetScrollScript2", SetScrollLocation.ToString(), false); } } System.Web.UI.UserControl usrCtrl = null; if (PubEntAdminManager.TamperProof) { qs_lkup = PubEntAdminManager.GetURLQS(PubEntAdminManager.LOOKUP_SUB); } else { qs_lkup = Request.QueryString[PubEntAdminManager.LOOKUP_SUB].ToString(); } if (qs_lkup.Length > 0) { this.plcHldContent.Controls.Clear(); switch (qs_lkup) { case "audience": usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/Audience.ascx"); this.plcHldContent.Controls.Add(usrCtrl); break; case "award": usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/Award.ascx"); this.plcHldContent.Controls.Add(usrCtrl); break; case "cancertype": usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/CancerType.ascx"); this.plcHldContent.Controls.Add(usrCtrl); break; case "language": usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/Language.ascx"); this.plcHldContent.Controls.Add(usrCtrl); break; case "prodformat": usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/ProductFormat.ascx"); this.plcHldContent.Controls.Add(usrCtrl); break; case "readinglevel": usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/ReadingLevel.ascx"); this.plcHldContent.Controls.Add(usrCtrl); break; case "race": usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/Race.ascx"); this.plcHldContent.Controls.Add(usrCtrl); break; case "serie": usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/Series.ascx"); this.plcHldContent.Controls.Add(usrCtrl); break; case "subj": usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/Subject.ascx"); usrCtrl.ID = "Suject1"; this.plcHldContent.Controls.Add(usrCtrl); break; case "subcat": if (Session[PubEntAdminManager.JS] != null) { if (System.Convert.ToBoolean(Session[PubEntAdminManager.JS].ToString())) { usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/SubCatx.ascx"); usrCtrl.ID = "SubCatx1"; } else { usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/SubCat.ascx"); usrCtrl.ID = "SubCat1"; } } else { usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/SubCat.ascx"); usrCtrl.ID = "SubCat1"; } this.plcHldContent.Controls.Add(usrCtrl); break; case "subsubcat": if (Session[PubEntAdminManager.JS] != null) { if (System.Convert.ToBoolean(Session[PubEntAdminManager.JS].ToString())) { usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/SubSubCatx.ascx"); usrCtrl.ID = "SubSubCatx1"; } else { usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/SubSubCat.ascx"); usrCtrl.ID = "SubSubCat1"; } } else { usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/SubSubCat.ascx"); usrCtrl.ID = "SubSubCat1"; } this.plcHldContent.Controls.Add(usrCtrl); break; case "sponsor": usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/Sponsor.ascx"); usrCtrl.ID = "Sponsor1"; this.plcHldContent.Controls.Add(usrCtrl); break; case "owner": usrCtrl = (System.Web.UI.UserControl) this.LoadControl("UserControl/Owner.ascx"); usrCtrl.ID = "Owner1"; this.plcHldContent.Controls.Add(usrCtrl); break; } } }