public static string[] GetCompletionListDocName(string prefixText, int count, string contextKey) { Document_Master objdoc = new Document_Master(); DataTable dt = objdoc.getdocumentmaster(HttpContext.Current.Session["CompId"].ToString(), "0"); dt = new DataView(dt, "Document_Name like '" + prefixText.ToString() + "%'", "", DataViewRowState.CurrentRows).ToTable(); string[] txt = new string[dt.Rows.Count]; for (int i = 0; i < dt.Rows.Count; i++) { txt[i] = dt.Rows[i]["Document_Name"].ToString(); } return(txt); }