Auto Complete help needed

Auto Complete help needed

I working with asp.net 2.0 and I am using JQuery autocomplete in application which is getting data from database through webservice. But I have problem that as the data is more than 2000 rows autocomplete throws an error message  Maximum length exceeded. 

So for testing purpose I try with small amount of data and it start working. So now I think I should use Like Query in my webservice and only return top 10 data only. So what i need do is that whatever i type in textbox it should go to webservice and webservice with filter the data will send back to us. But how can I achieve this. I am using following codes

ASPX Page Code

  1. <script type="text/javascript">
  2.         $(document).ready(function() {

  3.             //Code to fetch
  4.             $.ajax({
  5.                 type: "POST",
  6.                 url: "../AutoComplete.asmx/GetCompletionActorList",
  7.                 dataType: "json",
  8.                 data: "{}",
  9.                 contentType: "application/json; charset=utf-8",
  10.                 success: function(data) {
  11.                     $("input#actorList").autocomplete({
  12.                         source: eval(data)
  13.                     });
  14.                 },
  15.                 error: function(XMLHttpRequest, textStatus, errorThrown) {
  16.                     alert(textStatus);
  17.                 }
  18.             });
  19.         });
  20.     </script>

WebService Code

  1.  <WebMethod()> _
  2.   Public Function GetCompletionActorList() As String
  3.     Dim sbActor As New StringBuilder()
  4.     Dim actorAPI As New ActorBLL
  5.     Dim actor As Q8movies.ActorDetailDataTable = actorAPI.GetActorDetail()

  6.     Try
  7.       sbActor.Append("[")
  8.       For i As Integer = 0 To actor.Rows.Count - 1
  9.         sbActor.AppendFormat("'{0}',", actor.Rows(i).Item("ActorName"))
  10.       Next

  11.       'Removes the extra ":"
  12.       sbActor = sbActor.Remove(sbActor.Length - 1, 1)
  13.       sbActor.Append("]")
  14.     Catch ex As Exception
  15.       'Setup a breakpoint here 
  16.       'to verify any exceptions raised.
  17.       Dim exp As String = ex.ToString()
  18.     End Try
  19.     Return sbActor.ToString()
  20.   End Function

In above webservice code I will add parameter to the function so it will return less records. I also want to work on the CSS of the auto complete so kindly help on this.