$.ajax
post and timeout when the action takes longer than 90 secs. Is there way to increase the timeout more than 90 secs. Success function is called if the action return before 90 secs.
I tried using timeout setting did not make any difference. This timeout works if it is less than 90 secs.
I also tried adding [AsyncTimeout(120000)]
attribute to action "ActionName"
mentioned in the jQuery below. Still get timeout after 90 secs.
Below is the $.ajax
jQuery:
$.ajax({
url: '@Url.Action("ActionName", "ControllerName")',
data: $(form).serialize(),
datatype: 'html',
type: 'POST',
success: function(result) {
var $myDialog1 = $('<div></div>')
.html("Successfully completed.")
.dialog({
autoOpen: false,
modal: true,
width: 400,
closeOnEscape: false,
title: "CONFIRMATION",
buttons: {
"OK": function() {
$(this).dialog("close");
$("#DivName").html(result);
}
}
});
$myDialog1.dialog('open');
}