Exemplo n.º 1
0
    public static string[] GetFacilityNames(string prefixText, int count, string contextKey)
    {
        List<string> Fac_List = new List<string>();
        PatientInfoDAL pat_Info = new PatientInfoDAL();
        if (contextKey == "0")
        {
            Fac_List.Clear();
            DataTable dtFac = pat_Info.get_FacilityNames(prefixText, count, contextKey);
            foreach (DataRow dr in dtFac.Rows)
            {
                Fac_List.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(dr["Facility_Name"].ToString(), dr[0].ToString()));
            }
        }

        return Fac_List.ToArray();
    }