title: Using .ajaxForm and C# MVC, how can I prevent Internet Explorer from trying to save Json result?
body: <p>I'm returning some Json via a C# MVC Controller. Other browsers work fine, but Internet Explorer (IE9) tries to Save the returned Json data as a Text file. Any ideas how to keep this from happening?</p>
  
  <pre><code>//MVC Controller Code...
  return Json(new { redirectToUrl = Url.Action("Create", "Album",
                    new { url = url, isLocalFile = isLocalFile})});
  
  //Clientside Javascript Code
  $("#uploadImageForm").ajaxForm({
    beforeSubmit: function () {
  
    },
    success: function (data, textStatus, xhr) {
            window.location.href = data.redirectToUrl;
    },
    error: function (data, textStatus, xhr) {
    } 
  });
  </code></pre>
  
  <p>I've tried adding "text/plain" and "text/json" to the second argument of the return Json method, it doesn't work.</p>
  
  <p>Many thanks!</p>