protected void CreateSessions(string sesDistID, string sesFranchise, string sesLocation, string sesImpressions, string sesCampaign, string sesQTY, string sesBudget, bool sesRevisedMap, string sesFrequency, string sesStartDate, string sesBaseProductID, string sesProductID, string sesMapName) { //19 possible session variables. //Removed clear method b/case session "mapName" is now created on TargetDataMap1. //Session.Clear(); Session.Add(TaradelSession.AvgMatch, hidPctMatchAvg.Value); Session.Add(TaradelSession.Budget, sesBudget); Session.Add(TaradelSession.Campaign, sesCampaign); Session.Add(TaradelSession.DistID, sesDistID); Session.Add(TaradelSession.EstCost, hidAmount.Value); Session.Add(TaradelSession.Franchise, sesFranchise); Session.Add(TaradelSession.Frequency, sesFrequency); Session.Add(TaradelSession.Impressions, sesImpressions); Session.Add(TaradelSession.Location, sesLocation); Session.Add(TaradelSession.MapName, sesMapName); Session.Add(TaradelSession.PricePerPiece, hidPricePerPiece.Value); Session.Add(TaradelSession.ProductID, sesProductID); Session.Add(TaradelSession.BaseProductID, sesBaseProductID); Session.Add(TaradelSession.QTY, hidSelected.Value); //overriding --> 2/26/2016 //sesQTY); Session.Add(TaradelSession.RevisedMap, sesRevisedMap.ToString()); Session.Add(TaradelSession.StartDate, sesStartDate); Session.Add(TaradelSession.Template, OLBTargeter.GetProductName(productID)); Session.Add(TaradelSession.TotalMailed, hidTotalMailed.Value); Session.Add(TaradelSession.TotSelected, hidSelected.Value); }
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); }
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(); }