title: How to return HTML from ASP.Net WebMethod call using Jquery?
body: <p>Using Asp.Net 4.0 Web Forms and Jquery 1.6.2.
  I want to make an Ajax call to a WebMethod on a page and have it return html.
  On the server side the WebMethod looks like this. </p>
  
  <pre><code>[WebMethod]
  public static string GetOrders()
  {
      return theMethodThatGeneratesHtml();
  }
  </code></pre>
  
  <p>and here is the calling Ajax function.</p>
  
  <pre><code>function GetOrders()
  {
      $.ajax({
          type: 'POST',
          contentType: "application/json",
          url: "Orders.aspx/GetOrders",
          data: "{}",
          success: function (data) {
              $('#content').html(data);
          },
          dataType: "text"
      });
  }
  </code></pre>
  
  <p>The data that is returned from the WebMethod is always wrapped up as a json object that start like this. </p>
  
  <pre><code>{"d":"\u003ctable\u003e\r\n ........   
  </code></pre>
  
  <p>How can I get the WebMethod to just return HTML?</p>