Exemple #1
0
        public string[] GetAssociateGroupCustomerName(string prefixText, int count, string contextKey)
        {
            CustomerBo    customerBo     = new CustomerBo();
            DataTable     dtCustomerName = new DataTable();
            int           i     = 0;
            List <string> names = new List <string>();

            dtCustomerName = customerBo.GetAssociateGroupCustomerName(prefixText, int.Parse(contextKey));
            //string[] customerNameList = new string[dtCustomerName.Rows.Count];

            foreach (DataRow dr in dtCustomerName.Rows)
            {
                string item = AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(dr["C_FirstName"].ToString(), dr["C_CustomerId"].ToString());
                names.Add(item);
            }
            return(names.ToArray());
        }