title: Sending Json with data with partial view
body: <p>I have the following chtml code to an action in a controller.  The data is being sent by ajax to the action.
  The chtml part:</p>
  
  <pre><code>&lt;li&gt;
      &lt;button id="abandon-popup" onclick="Transfer(@Model.Id)"&gt;
         Transfer &lt;i class="icon-arrow-right"&gt;&lt;/i&gt;
      &lt;/button&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>The function Transfer:</p>
  
  <pre><code>function Transfer(modelId) {
      //alert(modelId);
      $.ajax({
  
          type: "GET",
          url: "/Internet/Transfer",
          data: "id=" + modelId,
          success: function (responsedata) {
              alert("ok");
              window.location.href = responsedata.newUrl;
          },
          error: function (data) {
            console.log("KO");
          }
      })
  }
  </code></pre>
  
  <p>The action in the controller:</p>
  
  <pre><code>public ActionResult Transfer(long id)
  {
    *some actions*
    return Json(new { newUrl = PartialView("~/Views/Shared/Partials/Leads/_TransferPopup.cshtml", commonModel) });
  }
  </code></pre>
  
  <p>However I am getting a 500 internal error on this:</p>
  
  <blockquote>
    <p>This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet</p>
  </blockquote>
  
  <p>Any idea how to correct this?</p>