private void Page_Load(object sender, System.EventArgs e) { if (!IsPostBack) { lstSALES_STAGE.DataSource = SplendidCache.List("sales_stage_dom"); lstSALES_STAGE.DataBind(); lstUSERS.DataSource = SplendidCache.ActiveUsers(); lstUSERS.DataBind(); // 09/14/2005 Paul. Default to today, and all sales stages. foreach (ListItem item in lstSALES_STAGE.Items) { item.Selected = true; } foreach (ListItem item in lstUSERS.Items) { item.Selected = true; } // 07/09/2006 Paul. The date is passed as TimeZone time, so convert from server time. ctlDATE_START.Value = T10n.FromServerTime(DateTime.Today); ctlDATE_END.Value = T10n.FromServerTime(new DateTime(2100, 1, 1)); // 09/15/2005 Paul. Maintain the pipeline query string separately so that we can respond to specific submit requests // and ignore all other control events on the page. ViewState["PipelineBySalesStageQueryString"] = PipelineQueryString(); } }
private void Page_Load(object sender, System.EventArgs e) { try { CalendarInitDate(); if (!IsPostBack) { lstUSERS.DataSource = SplendidCache.ActiveUsers(); lstUSERS.DataBind(); foreach (ListItem item in lstUSERS.Items) { item.Selected = true; } dtCurrentWeek = dtCurrentDate.AddDays(DayOfWeek.Sunday - dtCurrentDate.DayOfWeek); BindGrid(); } else { dtCurrentWeek = dtCurrentDate.AddDays(DayOfWeek.Sunday - dtCurrentDate.DayOfWeek); } //// 06/09/2006 Paul. Remove data binding in the user controls. Binding is required, but only do so in the ASPX pages. //Page.DataBind(); } catch (Exception ex) { SplendidError.SystemError(new StackTrace(true).GetFrame(0), ex.Message); lblError.Text = ex.Message; } }
private void Page_Load(object sender, System.EventArgs e) { if (!IsPostBack) { lstUSERS.DataSource = SplendidCache.ActiveUsers(); lstUSERS.DataBind(); txtYEAR.Text = DateTime.Today.Year.ToString(); foreach (ListItem item in lstUSERS.Items) { item.Selected = true; } // 09/15/2005 Paul. Maintain the pipeline query string separately so that we can respond to specific submit requests // and ignore all other control events on the page. ViewState["PipelineByMonthByOutcomeQueryString"] = PipelineQueryString(); } }
private void Page_Load(object sender, System.EventArgs e) { if (!IsPostBack) { lstLEAD_SOURCE.DataSource = SplendidCache.List("lead_source_dom"); lstLEAD_SOURCE.DataBind(); lstLEAD_SOURCE.Items.Insert(0, new ListItem(L10n.Term(".LBL_NONE"), "")); lstUSERS.DataSource = SplendidCache.ActiveUsers(); lstUSERS.DataBind(); // 09/14/2005 Paul. Default to today, and all leads. foreach (ListItem item in lstLEAD_SOURCE.Items) { item.Selected = true; } foreach (ListItem item in lstUSERS.Items) { item.Selected = true; } // 09/15/2005 Paul. Maintain the pipeline query string separately so that we can respond to specific submit requests // and ignore all other control events on the page. ViewState["OppByLeadSourceByOutcomeQueryString"] = PipelineQueryString(); } }