protected void CouncilAreaDropDownList_SelectedIndexChanged(object sender, EventArgs e) { // Clear the label. IncidentDetailsLabel.Text = ""; IncidentListBox.Items.Clear(); Boolean reload = true; // This Boolean isn't important. It's just to make // the many contructors different from one another. // Lazy programming but damnit, who cares; I don't have time! ilb = new Incident_List_Builder(this, reload); ilb.SetDropZoneDropDownList(CouncilAreaDropDownList.SelectedValue); }
//// Test method. //protected void DateButton_Click(object sender, EventArgs e) //{ // DateLabel.Text = DropZoneDropDownList.SelectedValue.ToString(); //} protected void DropZoneDropDownList_SelectedIndexChanged(object sender, EventArgs e) { // Clear the label. IncidentDetailsLabel.Text = ""; // Clear the listbox. IncidentListBox.Items.Clear(); if (DropZoneDropDownList.SelectedIndex != 0) // The 'Please select' item. { ilb = new Incident_List_Builder(this, DropZoneDropDownList.SelectedValue); Profile.DropZoneID = DropZoneDropDownList.SelectedValue; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Response.Cache.SetNoStore(); // Don't cache this page! // If the person was to get here using the breadcrumbs from the incident report page. // If the person was to get here using a direct link from the incident report page. // Clear the profile. Profile.IncidentReportID = ""; Profile.DropZoneID = ""; ilb = new Incident_List_Builder(this); } }
protected void IncidentListBox_SelectedIndexChanged(object sender, EventArgs e) { Boolean incidentselected = false; ; if (IncidentListBox.SelectedValue != "") { incidentselected = true; } if (incidentselected == true) { ilb = new Incident_List_Builder(this, IncidentListBox.SelectedValue, true); } }