title: returning complete page HTML instead of string output in JSON response
body: <p>I am trying to achieve a simplest task through ajax using web method  . My web method as follow </p>
  
  <pre><code>[WebMethod]
      public static string GetDate()
      {
          return string.Format("says {0}", DateTime.Now.ToString("r"));
      }
  </code></pre>
  
  <p>and ajax code as follow </p>
  
  <pre><code> $(document).ready(function() {
              $("#Result").click(function() {
                  alert('Result Clicked');
  
                  $.ajax(
                 {
                     type: "POST",
                     url: "test1.aspx/GetDate",
                     data : "{}",
                     contentType: "application/json",
                     dataType: "json text",
                     success: function(rsp) {
  
                         alert('success');
                         alert(rsp);
                         alert(rsp.d);
  
                         $('#Result').append(rsp.d);
  
  
                     },
                     error: function(rsp) {
                         alert(rsp.status + " " + rsp.statusText + "&lt;/br&gt;" + rsp.responseText);
                         console.log(rsp);
                         console.log(rsp.responseText);
  
                     }
                 });
              });
  
          });
  </code></pre>
  
  <p>but status says OK and 200 status code, but instead of simple string in <code>rsp.d</code> its shows complete HTML of that page self. </p>