Esempio n. 1
0
    public static string[] GetInsuranceNames(string prefixText, int count, string contextKey)
    {
        List<string> Ins_List = new List<string>();
        PatientInfoDAL pat_Info = new PatientInfoDAL();
        if (contextKey == "0")
        {
            Ins_List.Clear();
            DataTable dtIns = pat_Info.get_InsuranceNames(prefixText, count, contextKey);
            foreach (DataRow dr in dtIns.Rows)
            {
                Ins_List.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(dr["Ins_Name"].ToString(), dr[0].ToString()));
            }
        }

        return Ins_List.ToArray();
    }