title: Kendo Grid Create, Update, Destroy Not Calling WebMethods
body: <p>When I create, edit, or delete a record it looks as if it has done it in the grid but it never calls the associated WebMethod. </p>
  
  <p>I am using the following in my dataSource:</p>
  
  <pre><code>        transport: {
              read: {
                  contentType: "application/json; charset=utf-8",
                  url: "DepartmentHome.aspx/GetMembers",
                  dataType: "json"
              },
              create: {
                  url: "DepartmentHome.aspx/CreateMember",
                  type: "POST"
              },
              update: {
                  url: "DepartmentHome.aspx/EditMember",
                  type: "POST"
              },
              destroy: {
                  url: "DepartmentHome.aspx/DeleteMember",
                  type: "POST"
              }                
          },
  </code></pre>
  
  <p>and in my code behind I have defined the WebMethods as such:</p>
  
  <pre><code>    [WebMethod]
      public static void CreateMember()
      {
          File.WriteAllText(@"C:\testing.txt", "This is a create.");
      }
  
      [WebMethod]
      public static void EditMember()
      {
          File.WriteAllText(@"C:\testing.txt", "This is an update.");
      }
  
      [WebMethod]
      public static void DeleteMember()
      {
          File.WriteAllText(@"C:\testing.txt", "This is a delete.");
      }
  </code></pre>
  
  <p>I do see in firebug that it sends:<br>
  POST CreateMember<br>
  POST EditMember<br>
  POST DeleteMember  </p>
  
  <p>When I click on the associated buttons the POST data contains the parameters for that row:<br>
  FirstName: John<br>
  Id: 1<br>
  LastName: Smith  </p>
  
  <p>However, it never actually calls any of my WebMethods.</p>
  
  <p>The Response back from the POST is just all the html from the page DepartmentHome.aspx.</p>
  
  <p>I am using a WebMethod for read and that is working perfectly.  I don't know what the difference would be?</p>
  
  <p>You can find my complete source code aspx and aspx.cs file here:<br>
  <a href="http://www.kendoui.com/clientsfiles/3028826e-9aae-631b-85d4-ff000054ddc5_grid.zip?sfvrsn=0" rel="nofollow">http://www.kendoui.com/clientsfiles/3028826e-9aae-631b-85d4-ff000054ddc5_grid.zip?sfvrsn=0</a></p>
  
  <p>Any help would be greatly appreciated.</p>