示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Master.PageID = 1111;

            short         siteId;
            SiteVariables vars = new SiteVariables();

            siteId = short.Parse(vars["siteid"]);

            PageTextPopulator pageTextPopulator;

            pageTextPopulator = new PageTextPopulator(1111, 1, siteId);
            this.HPText       = pageTextPopulator.Body;
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            short  siteId;
            string defaultSectionUrl, defaultPageUrl, section, page;

            page    = Request.QueryString["page"];
            section = Request.QueryString["section"];

            SiteVariables     vars;
            PageTextPopulator pageTextPopulator = null;

            vars              = new SiteVariables();
            siteId            = short.Parse(vars["siteid"]);
            defaultSectionUrl = vars["defaultsectionurl"];
            defaultPageUrl    = vars["defaultpageurl"];

            // if no default section/page url then show default page
            if (section == null && page == null)
            {
                Server.Transfer("/PageNotFound.aspx");
            }
            else if (page == null)
            {
                pageTextPopulator = new PageTextPopulator(section, 1, siteId, string.Empty);
            }
            else
            {
                pageTextPopulator = new PageTextPopulator(page, 1, siteId, section);
            }

            if (pageTextPopulator.PageId == 0)
            {
                Server.Transfer("/PageNotFound.aspx");
            }
            else
            {
                Page.Title     = pageTextPopulator.PageTitle + " - " + vars["sitename"];
                this.PageTitle = pageTextPopulator.PageTitle;
                this.BodyText  = pageTextPopulator.Body;

                Master.MetaTitle       = string.IsNullOrEmpty(pageTextPopulator.SeoTitle) ? pageTextPopulator.PageTitle : pageTextPopulator.SeoTitle;
                Master.MetaDescription = pageTextPopulator.SeoDesc;
                Master.MetaKeywords    = pageTextPopulator.SeoKeywords;
                Master.PageID          = pageTextPopulator.PageId;

                Slideshow.ParentID = pageTextPopulator.PageId;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            short         siteId;
            SiteVariables vars = new SiteVariables();

            siteId = short.Parse(vars["siteid"]);

            PageTextPopulator pageTextPopulator;

            pageTextPopulator = new PageTextPopulator(585, 1, siteId);
            this.NeighText    = pageTextPopulator.Body;

            /*Property property = new Property(new SiteData().ConnectionString);
             * property.PropertyType = int.Parse(Request.QueryString["propertytype"]);
             * property.LoadTypeInformation();
             *
             * PropertyItem mypropertyType = property.PropertyItems[0];
             *
             * this.Title = mypropertyType.Title;
             * this.BodyText = mypropertyType.Standfirst;
             * this.FloorplanImage = mypropertyType.Image;*/
        }
示例#4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            short  siteId;
            string ddHtml;

            if (Session["utm"] != null || !string.IsNullOrEmpty(CommonFeatures.ReadCookie("utmc")))
            {
                this.UTMSession = true;
            }
            else
            {
                this.UTMSession = false;
            }

            SiteVariables vars = new SiteVariables();

            siteId = short.Parse(vars["siteid"]);

            NavPopulator navPopulator;

            navPopulator = new NavPopulator(ref footernav, siteId, 0, "", "", "", 2);

            currentyear.Text = DateTime.Now.Year.ToString();


            //country of residence

            ListBox listBox = new ListBox(new SiteData().ConnectionString);

            listBox.LoadCountryOfResidence();

            ddHtml = "<select onchange=\"LabelAnimationSelect('fcountry')\" id=\"fcountry\"><option></option>";

            foreach (ListBoxItem itemlb in listBox.ListBoxItems)
            {
                ddHtml += "<option value=\"" + itemlb.ItemID + "|" + itemlb.Title + "\">" + itemlb.Title + "</option>";
            }

            ddHtml += "</select>";

            this.CountryDropDown = ddHtml;

            //Reason of purchase

            listBox.ListBoxItems.Clear();
            listBox.LoadReasonOfPurchase();

            ddHtml = "<select onchange=\"LabelAnimationSelect('freason-for-purchase')\" id=\"freason-for-purchase\"><option></option>";

            foreach (ListBoxItem itemlb in listBox.ListBoxItems)
            {
                ddHtml += "<option value=\"" + itemlb.ItemID + "|" + itemlb.Title + "\">" + itemlb.Title + "</option>";
            }

            ddHtml += "</select>";

            this.ReasonPurchaseDropDown = ddHtml;

            //enquiry Source

            listBox.ListBoxItems.Clear();
            listBox.LoadEnquirySource();

            ddHtml = "<select onchange=\"LabelAnimationSelect('fenquiry-source')\" id=\"fenquiry-source\"><option></option>";

            foreach (ListBoxItem itemlb in listBox.ListBoxItems)
            {
                ddHtml += "<option value=\"" + itemlb.ItemID + "|" + itemlb.Title + "\">" + itemlb.Title + "</option>";
            }

            ddHtml += "</select>";

            this.EnquirySourceDropDown = ddHtml;

            //title dropdown

            listBox.ListBoxItems.Clear();
            listBox.LoadTitles();

            ddHtml = "<select onchange=\"LabelAnimationSelect('ftitle')\" id=\"ftitle\"><option></option>";

            foreach (ListBoxItem itemlb in listBox.ListBoxItems)
            {
                ddHtml += "<option value=\"" + itemlb.ItemID + "|" + itemlb.Title + "\">" + itemlb.Title + "</option>";
            }

            ddHtml += "</select>";

            this.TitleDropDown = ddHtml;



            /*****  Footer nav content *****/

            PageTextPopulator pageTextPopulator;

            pageTextPopulator   = new PageTextPopulator(1129, 1, siteId);
            this.CoockieContent = "<h1 class=\"footetputitle\">" + pageTextPopulator.PageTitle + "</h1>" + pageTextPopulator.Body;

            pageTextPopulator     = new PageTextPopulator(1130, 1, siteId);
            this.DisclaimerContet = "<h1 class=\"footetputitle\">" + pageTextPopulator.PageTitle + "</h1>" + pageTextPopulator.Body;

            pageTextPopulator   = new PageTextPopulator(1131, 1, siteId);
            this.PrivacyContent = "<h1 class=\"footetputitle\">" + pageTextPopulator.PageTitle + "</h1>" + pageTextPopulator.Body;


            /*********** session cookie policy ******/

            //string aaaa = Context.Session["lp-cookie"].ToString();
        }