protected void btnGetIncidents_Click(object sender, EventArgs e) { incidentsTable = (DataView)SqlDataSource1.Select(DataSourceSelectArguments.Empty); incidentsTable.RowFilter = "CustomerID = " + txtCustomerID.Text + " And DateClosed Is Not Null"; if (incidentsTable.Count > 0) { this.DisplayClosedIncidents(); chckboxContactMe.Enabled = true; RadioBtnListResponse.Enabled = true; RadioBtnListTechnician.Enabled = true; RadioBtnListProblem.Enabled = true; RadioBtnListContactBy.Enabled = true; txtboxAdditionalComments.Enabled = true; btnSubmit.Enabled = true; lstBoxIncidents.Focus(); } else { lblNoIncidentInfo.Visible = true; lblNoIncidentInfo.Text = "There are no incidents for the requested customer."; survey.Clear(); lstBoxIncidents.Items.Clear(); } }