title: how to send form data by ajax from asp.net html page to c# code
body: <p>I want to get from post value in my class method via ajax call
  here is my html page</p>
  
  <pre><code>&lt;form method="post"&gt;
      &lt;input type="text" name="text"  /&gt;
      &lt;input type="email" name="email" /&gt;
      &lt;input type="file" name="file" /&gt;
      &lt;input type="date" name="date" /&gt;
      &lt;input type="submit" name="send" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And this is my jquery code</p>
  
  <pre><code>$(document).ready(function () {
          $('form').submit(function (e) {
              var data = $(this).serializeArray();
              var jsObj = {};
              $.each(data, function (feild, value) {
                  jsObj[value.name] = value.value;
              });
  
              $.ajax({
                  url: "index.cs/addRow",
                  method: "post",
                  dataType: "json",
                  data: jsObj,
                  success : function(response){
                      console.log(response);
                  }
              });
              e.preventDefault();
   });
  </code></pre>
  
  <p>And this is my c# code 
  these is the method where i want post form</p>
  
  <pre><code>[WebMethod] 
  public static void addRow(object form)
  {
    var stuff = form;
  }
  </code></pre>