title: getting jQuery Ajax return data in Asp.Net
body: <p>I'm a newbie in jQuery and don't understand how in jQuery Ajax returns data. I have some simple function to get some data like below</p>
  
  <pre><code>[WebMethod(EnableSession = false)]
  protected int SignIn()
  {
      return 0;
  }
  </code></pre>
  
  <p>and in my .aspx page I have this </p>
  
  <pre><code>$(document).ready(function () {
          $("#si").click(function 
              () {
              $.ajax({
                  type: "POST",
                  url: "SignIn.aspx/SignIn",
                  contentType: "application/json",
                  success: function (txt) {
                      alert(txt);
                  }
              });
          });
      });
  </code></pre>
  
  <p>but in alert I get the whole SignIn.aspx (all html tags and so on). how to alert the 0 which the SignIn() returns?thanks </p>