title: call webservice from content page from javascript
body: <p>i want to call a autocomplete webservice from javascript from a content page.webservice is in the same web app itself.if i use a simple .aspx page it calls the webservice and everything works fine.but as soon as i apply master page to it,it doesnt work at all.i have not placed script manager on master page.so i want to use script manager on content page itself.
  i have googled for it and applied the following
       
       
      </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
   $(document).ready(function () {
       SearchText();
   });
   function SearchText() {
       $("#txtSearch").autocomplete({
           source: function (request, response) {
               $.ajax({
                   type: "POST",
                   contentType: "application/json; charset=utf-8",
                   url: "AutoComplete.asmx/GetAutoCompleteData",
                   data: "{'username':'" + extractLast(request.term) + "'}",
                   dataType: "json",
                   success: function (data) {
                       response(data.d);
                   },
                   error: function (result) {
                       alert("Error");
                   }
               });
           }
  &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
  &lt;/asp:ScriptManager&gt;
  &lt;/asp:Content&gt;
  </code></pre>