public static string[] GetInsuranceNames(string prefixText, int count) { PatientInfoDAL objPat_Info = new PatientInfoDAL(); List<string> Pat_List = new List<string>(); objPat_Info = new PatientInfoDAL(); Pat_List.Clear(); DataTable Pat_Names = objPat_Info.get_InsNames(prefixText); if (Pat_Names.Rows.Count > 0) { foreach (DataRow dr in Pat_Names.Rows) { Pat_List.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(dr[0].ToString(), dr[1].ToString())); } } else { Pat_List.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem("No Insurance Found...", "0")); } return Pat_List.ToArray(); }