I am in asp.net mvc paradigm. On one of my views, I have two fields Start Number
and End Number
. User is allowed to enter numeric values in these fields and when he clicks on submit button I have to loop from startNumber to endNumber and send an ajax requests for each iteration of the loop.
I have a scenario when the difference between start number and end number may range to 100's, so I am planning to send ajax requests in batch of 3 or 5. e.g I will send three requests and wait for them to complete and after that, I need to send next three until the loop is completed. I don't know how to target this problem.