Exemplo n.º 1
0
 public static string[] GetDrugNames(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_DrugName(prefixText);
     foreach (DataRow dr in Pat_Names.Rows)
     {
         Pat_List.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(dr[0].ToString(), dr[1].ToString()));
     }
     return Pat_List.ToArray();
 }