public static string[] GetClaimName(string prefixText, int count, string contextKey) { DataTable dt = Pay_Employee_claim.GetClaimName("", HttpContext.Current.Session["CompId"].ToString()); dt = new DataView(dt, "Claim_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); }