public static string[] GetLoanName(string prefixText, int count, string contextKey) { DataTable dt = Pay_Employee_Loan.GetLoanName("", HttpContext.Current.Session["CompId"].ToString()); dt = new DataView(dt, "Loan_Name lIKE '" + prefixText + "%'", "", DataViewRowState.CurrentRows).ToTable(); string[] str = new string[dt.Rows.Count]; for (int i = 0; i < dt.Rows.Count; i++) { str[i] = dt.Rows[i][0].ToString(); } return(str); }