Example #1
0
    public static string[] GetCompletionList(string prefixText, int count, string contextKey)
    {
        Inv_OptionCategoryMaster ObjOptCat = new Inv_OptionCategoryMaster();
        DataTable dt = new DataView(ObjOptCat.GetOptionCategoryTrueAll(HttpContext.Current.Session["CompId"].ToString()), "EName='" + prefixText.ToString() + "'", "", DataViewRowState.CurrentRows).ToTable();

        string[] text = new string[dt.Rows.Count];
        for (int i = 0; i < dt.Rows.Count; i++)
        {
            text[i] = dt.Rows[i]["EName"].ToString();
        }
        return(text);
    }