title: ASP.Net web service always return XML not JSON
body: <p>Currenly i use asp.net web service but when i call web service method by ajax call it always return XML not json</p>
  
  <p>i try </p>
  
  <p><a href="https://stackoverflow.com/questions/9469189/asp-net-web-service-wont-return-json-always-xml">ASP.Net web service won&#39;t return JSON - Always XML</a></p>
  
  <p>but its also not work for me..</p>
  
  <p>JS :-</p>
  
  <pre><code>$.ajax({
              type: "Post",
              contentType: "application/json; charset=utf-8",
              url: "http://www.quietincomes.com/LoginWebservice.asmx/Demo",
              dataType: "jsonp",
              success: function (data) {
                  alert("1" + data);
              },
              error: function (result) {
                  alert("2" + JSON.stringify(result));
              }
  });
  </code></pre>
  
  <p>LoginWebservice.asmx :-</p>
  
  <pre><code> [WebMethod]
      [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
      public string Demo()
      {
          return "Harshit";
      }
  </code></pre>
  
  <p>where i am wrong..</p>
  
  <p>jsfiddle Example:- </p>
  
  <p><a href="http://jsfiddle.net/EXvqc/" rel="nofollow noreferrer">http://jsfiddle.net/EXvqc/</a></p>