protected void ButtonFilterIndividual_Click(object sender, EventArgs e) { if (TextBoxIndividual.Text.Trim() == string.Empty) { return; } var manager = new IndividualManager(); var table = manager.SearchByName(TextBoxIndividual.Text.Trim().ToLower()); DropIndividual.Items.Clear(); DropIndividual.DataSource = table; DropIndividual.DataTextField = table.individual_nameColumn.ColumnName; DropIndividual.DataValueField = table.individual_nameColumn.ColumnName; DropIndividual.DataBind(); DropIndividual.Enabled = DropIndividual.Items.Count > 0; }
protected void ButtonSrchPerson_Click(object sender, EventArgs e) { if (TextNamePerson.Text.Trim().Length < 1) { return; } var dal = new IndividualManager(); var table = dal.SearchByName(this.TextNamePerson.Text); CheckAll.Checked = false; CheckResults.Items.Clear(); CheckResults.DataSource = table; CheckResults.DataTextField = table.individual_nameColumn.ColumnName; CheckResults.DataValueField = table.individual_nameColumn.ColumnName; CheckResults.DataBind(); Panel1.Visible = true; }