private void BindISAList() { DataTable dtGetISAList; if (!string.IsNullOrEmpty(txtCustomerId.Value)) { dtGetISAList = customerAccountBo.GetISAListForFolioMapping(int.Parse(txtCustomerId.Value)); if (dtGetISAList.Rows.Count > 0) { ddlCustomerISAAccount.DataSource = dtGetISAList; ddlCustomerISAAccount.DataValueField = dtGetISAList.Columns["CISAA_accountid"].ToString(); ddlCustomerISAAccount.DataTextField = dtGetISAList.Columns["CISAA_AccountNumber"].ToString(); ddlCustomerISAAccount.DataBind(); ddlCustomerISAAccount.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select", "Select")); } else { ddlCustomerISAAccount.Items.Clear(); ddlCustomerISAAccount.DataSource = null; ddlCustomerISAAccount.DataBind(); ddlCustomerISAAccount.Items.Insert(0, new ListItem("Select", "Select")); } } }