http://jqueryui.com/autocomplete/#remote
      $(document).ready(function() {
        var Employees = function(request, response) {
            var value1 = document.getElementById('<%= txtEmployeeID.ClientID %>').value.split(" ");
            $.ajax({
                type: "POST",
                contentType: "application/json; charset=utf-8",
                url: "WebService.asmx/GetEmployees",
                data: "{'keywords':'" + value1 + "'}",
                dataType: "json",
                async: true,
                success: function(data) {
                    response(data.d);
                },
                error: function(result) {
                    //alert("Error");
                }
            });
        }
        $('#<%= txtEmployeeID.ClientID %>').autocomplete({
            autoFocus: true, source: Employees
        });
    });
これは、データベースから値を取得するためのオートコンプリートのコードです。
これは、各文字が入力されたときに実行され、値がフィルター処理されます。
開始時にすべての従業員名を var Employee にロードするオートコンプリートを探しています。フィルタリングを再試行する必要はありません。