title: Ajax Json multiple parameters
body: <p>This code below sitting on a ASP.Net application on the Site.Mater....</p>
  
  <p>I need to pass another two parameters from the default.aspx page, one asp:label and one asp:textbox</p>
  
  <p>What is the easiest way to do that?</p>
  
  <p>Thanks</p>
  
  <pre><code>     &lt;script type="text/javascript"&gt;
          $(function () {
                  $(".tb").autocomplete({
                  source: function (request, response) {
                      $.ajax({
                          url: "TestWebService.asmx/FetchList",
                          data: "{ 'testName': '" + request.term + "'}",
                          dataType: "json",
                          type: "POST",
                          contentType: "application/json; charset=utf-8",
                          dataFilter: function (data) { return data; },
                          success: function (data) {
                              response($.map(data.d, function (item) {
                                  return {
                                      value: item.Name
  
                                  }
                              }))
                          },
                          error: function (XMLHttpRequest, textStatus, errorThrown) {
                              alert(textStatus);
                          }
                      });
                  },
                  minLength: 2
  
              });
          });
  </code></pre>