0
我已將腳本超時設置爲20分鐘,用於我的ajax請求。 10米5秒後,我的請求超時。我在這裏做錯了什麼?我怎樣才能讓這個更好?我正在測試對臨時數據庫的功能,這是一個非常慢的服務器。腳本超時MVC 2和jquery xhr.responseText爲空
Server.ScriptTimeout = 1200;
此時xhr.responseText也是空白的。
$.ajax({
cache: false,
url: url,
type: Ajax.MethodType.POST, //global.vars.js
data: { estimateId: estimateId, random: Math.random() },
error: function (xhr, ajaxOptions, thrownError) {
jMessageError(xhr.responseTex, $click, false, true);
},
success: function (result) {
//display the count
$("#" + enumFormFields.hiddenCountNumberId).val(result.Message);
$("#" + enumDashboard.estimateVolumeId).html(result.Message);
}
});
有什麼建議? –