private void cmbDelegateBranchSelectedIndexChanged() { try { //Delegate Lead List <ControlListData> source = StaffBiz.GetStaffAllDataByAccessRight(txtCampaignId.Text.Trim(), cmbDelegateBranch.SelectedItem.Value); AppUtil.CalculateAmountJobOnHandForDropdownlist(cmbDelegateBranch.SelectedItem.Value, source); cmbDelegate.DataSource = source; cmbDelegate.DataTextField = "TextField"; cmbDelegate.DataValueField = "ValueField"; cmbDelegate.DataBind(); cmbDelegate.Items.Insert(0, new ListItem("", "")); if (cmbDelegateBranch.SelectedItem.Value != string.Empty) { cmbDelegate.Enabled = true; } else { cmbDelegate.Enabled = false; } } catch (Exception ex) { throw ex; } }