I have two ActionResults which I call them using Ajax request (async:true) Continuously. The problem is that although the second ActionResult calls by Ajax but doesn't hit in controller until the first ActionResult completion.
I don't want to wait for the first ActionResult completion. Any solution?
function FuncOne(){
$.ajax({
url:'/report/ActionOne',
type:'post',
async:true,
success:function(result){
}
})
}
function FuncTwo(){
$.ajax({
url:'/report/ActionTwo',
type:'post',
async:true,
success:function(result){
}
})
}
FuncOne()
FuncTwo()
Both ActionOne and ActionTwo are (public async Task<ActionResult> ActionResultName
)...
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…