protected void Page_Load(object sender, EventArgs e) { //Get parent campaign currentCampaign = new ModuleEnquiryLandingItem(currentItem.InnerItem.Parent); privacyPolicyUrl = SitecoreHelper.GetQualifiedUrlFromItemPath(ItemPaths.PrivacyPolicy); termsConditionsUrl = new PageSummaryItem(currentCampaign.CampaignBase.Termsandconditionslink.Item).QualifiedUrl; homePageUrl = SitecoreHelper.GetQualifiedUrlFromItemPath(ItemPaths.HomePage); btnSubmit.Text = Translate.Text("Submit"); //Set page if (!Page.IsPostBack) { SetPage(); } Control scriptPh = this.Page.FindControl("ScriptPh"); if (scriptPh != null) { scriptPh.Controls.Add(new LiteralControl(@" <script src='/virginactive/scripts/_plugins/chosen/chosen.js' type='text/javascript'></script> <script src='/virginactive/scripts/_plugins/validation/jquery.validate.js' type='text/javascript'></script> <script src='/virginactive/scripts/_plugins/validation/additional-methods.js' type='text/javascript'></script> <script src='/virginactive/scripts/campaigns/module_enquiry.js' type='text/javascript'></script> ")); } //THIS IS WHERE WE HIDE/SHOW COOKIE MESSAGE -N.B. User Session initialised and set in Header //HtmlGenericControl cookieSection = (HtmlGenericControl)Page.FindControl("cookieSection"); //if (cookieSection != null) //{ // string classNames = pageContainer.Attributes["class"] != null ? pageContainer.Attributes["class"] : ""; // pageContainer.Attributes.Add("class", classNames.Length > 0 ? classNames + " cookies_visible" : "cookies_visible"); //} }
protected void Page_Load(object sender, EventArgs e) { //Get parent campaign currentCampaign = new ModuleEnquiryLandingItem(currentItem.InnerItem.Parent); homePageUrl = SitecoreHelper.GetQualifiedUrlFromItemPath(ItemPaths.HomePage); //Set page if (!Page.IsPostBack) { SetPage(); } }