//Statistics_Handler _handler = new Statistics_Handler(); protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { _builder = new Statistics_Page_Builder(this); _builder.LoadListControl(CouncilAreaDropDownList.ID, _handler.APF.Council_Areas); // Hide the 'Reserved' listitem. foreach (ListItem i in CouncilAreaDropDownList.Items) { if (i.Value == ConfigurationManager.AppSettings.Get("CAReservedValue")) { i.Enabled = false; } } _handler.SelectCouncilArea(CouncilAreaDropDownList.SelectedValue); _builder.LoadListControl(DropZoneDropDownList.ID, _handler.GetDropZonesFromCouncilArea()); } StartDateTextBox.Attributes.Add("onfocus", "this.blur()"); EndDateTextBox.Attributes.Add("onfocus", "this.blur()"); }
protected void CouncilAreaDropDownList_SelectedIndexChanged(object sender, EventArgs e) { _handler.SelectCouncilArea(CouncilAreaDropDownList.Text); _builder = new Statistics_Page_Builder(this, DropZoneDropDownList); _builder.LoadListControl(DropZoneDropDownList.ID, _handler.GetDropZonesFromCouncilArea()); }