It is not possible bcoz javascript is single thread language.
It is not possible to call generic handler to communicate with database( or u can say IS) bcoz calling of this,is one statement in javascript.
So below code is not possible in for loop
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "../scm/Search_CS.ashx?act=bg&FPSNo=" + FPSCodearr[i] + "&commodityId=" + comm[1] + "&month=" + my[1] + "&AllocNo=" + $('#<%=ddl.ClientID %> :selected').text(),
data: "{}",
dataType: "json",
async: true,
success: function (result) {
},
error: function () {
alert("Error");
}
});
Improve question Permalink