Example #1
0
    protected void SetOverview()
    {
        //Set labels in Campaign Overview.
        lblFranchise.Text = RetrieveFromSession(TaradelSession.Franchise);
        lblLocation.Text  = RetrieveFromSession(TaradelSession.Location);
        lblUserName.Text  = RetrieveFromSession(TaradelSession.Location);
        //lblSelected.Text = Convert.ToInt32(RetrieveFromSession(TaradelSession.TotSelected)).ToString("N0");
        lblSelected.Text      = RetrieveFromSession(TaradelSession.TotSelected);
        lblPctMatchAvg.Text   = RetrieveFromSession(TaradelSession.AvgMatch);
        lblAmount.Text        = RetrieveFromSession(TaradelSession.EstCost);
        lblTotalMailed.Text   = RetrieveFromSession(TaradelSession.TotalMailed);
        lblPricePerPiece.Text = RetrieveFromSession(TaradelSession.PricePerPiece);
        lblImpressions.Text   = RetrieveFromSession(TaradelSession.Impressions);
        lblFrequency.Text     = OLBTargeter.GetFrequencyString(Convert.ToInt32(RetrieveFromSession(TaradelSession.Frequency)));
        lblTemplate.Text      = OLBTargeter.GetProductName(productID);
        lblLaunchWeek.Text    = "Week of: " + RetrieveFromSession(TaradelSession.StartDate);


        //set the cookie for the template
        HttpCookie cookie = new HttpCookie("DesignOption");

        // Set value of cookie to current date time.
        cookie.Value = "Template";
        // Set cookie to expire in 10 minutes.
        cookie.Expires = DateTime.Now.AddMinutes(10d);
        // Insert the cookie in the current HttpResponse.
        Response.Cookies.Add(cookie);
    }
Example #2
0
    protected void SetOverview()
    {
        //11 Controls in all to match up
        lblFranchise.Text   = Server.UrlDecode(HttpContext.Current.Request.QueryString.Get("t"));
        lblLocation.Text    = Server.UrlDecode(HttpContext.Current.Request.QueryString.Get("l"));
        lblImpressions.Text = HttpContext.Current.Request.QueryString.Get("i");
        lblFrequency.Text   = OLBTargeter.GetFrequencyString(frequency);
        lblTemplate.Text    = OLBTargeter.GetProductName(productID);
        lblLaunchWeek.Text  = "Week of " + Server.UrlDecode(HttpContext.Current.Request.QueryString.Get("s"));
        int distID2 = Int32.Parse(HttpContext.Current.Request.QueryString.Get("d"));

        hidSelected.Value = RetrieveDistributionResidentialTotal(distID2).ToString();
    }