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_PreRender(object sender, EventArgs e) { if (PubEntAdminManager.TamperProof) { if (PubEntAdminManager.ContainURLQS("subsubcatid")) { PubEntAdminManager.RedirectEncodedURLWithQS("LookupMgmt.aspx", "sub=subsubcat"); } } else { if (Request.QueryString["subsubcatid"] != null) { Response.Redirect("~/LookupMgmt.aspx?sub=subsubcat"); } } if (Session[PubEntAdminManager.JS] != null) { if (System.Convert.ToBoolean(Session[PubEntAdminManager.JS].ToString())) { this.InsertSplChkScript(); this.SpellCkr1.RefImgSplChk().Attributes.Add("onclick", "LookupMgmt_SpellCheckClick(1)"); this.SpellCkr2.RefImgSplChk().Attributes.Add("onclick", "LookupMgmt_SpellCheckClick(2)"); } else { ShowHideSpellChecker(false); } } else { ShowHideSpellChecker(false); } }