Я кодирую .getJSon, он выполняет свою работу, но я получаю IE, чтобы попросить загрузить файл. Вот код
<script type="text/javascript">
$(function() {
$('#id').click(function() {
var dateReport = "01/01/2009";
$.getJSON('/Report/SendReport', { date: dateReport},
function(response) {
if (response.result == "OK") {
$('#OKSendReport').toggle();
$('#OKSendReport').html("OK");
}
});
});
});
Код в контроллере:
public ActionResult SendReport(string date) {
//DO Stuff
return new JsonResult {
Data = new { result = "OK" }
};
}
Есть идеи?