title: DataTables AJAX is not calling server-side method
body: <p>I am trying to implement <a href="https://www.datatables.net/examples/data_sources/server_side.html" rel="nofollow">DataTables.Net Server side</a> in ASP.NET web forms.</p>
  
  <pre><code>$('#GridViewClient').dataTable({                
      stateSave: true,
      Processing: true,
      serverSide: true,
      ajax: "22.aspx/GetAllUsers"                
  });
  
  
  [WebMethod]    
  public static string GetAllUsers()
  {
      string sResult = "";
  
      try
      {
          BussinessLayer.Client obj = new BussinessLayer.Client();
  
          int nDraw = Convert.ToInt32(HttpContext.Current.Request.Params["draw"]);
          List&lt;Client_table&gt; lst = obj.GetAllClient();
  
          ReturnData oResult = new ReturnData();
          oResult.draw = nDraw;
          oResult.recordsTotal = lst.Count;
          oResult.recordsFiltered = lst.Count;
  
          foreach (Client_table o in lst)
              oResult.data.Add(o.ToString());
  
          sResult = oResult.ToString();
  
  
      }
      catch (Exception err)
      {
          string sMsg = err.Message;
          sResult = "";
      }
  
      return sResult;
  }
  </code></pre>
  
  <p>When I try to call this method using a normal ajax call, it is working fine and the debug point is also hitting. But when I call this method using a datatables ajax request, the method is not getting called?</p>