Remove the delay by System.Threading.Thread.Sleep(60000)
in code behind and send the second ajax
call after receiving the response from the server side.
$.ajax(
{
url:Service.asmx/dummy",
contentType: "application/json; charset=utf-8",
dataType: "json",
type: "POST",
success: function (strData) {
alert('done');
//send second call here
}
error: function (jqXHR, textStatus, errorThrown) {
//send second call here if required.
}
});
If you do not have any synchronization problem for simultaneous call then you can remove delay and send multiple call simultaneouly.