I want to process some records one by one , Need to show record number on .aspx page that currently we are processing nth record.
Setting value of nth record in a label does not work as it will be reflecting only after response come back from server (it does not get refreshed for every record - looks like freezing )
Asked
Active
Viewed 983 times
0

Saurabh
- 1,505
- 6
- 20
- 37
-
solution to the freeze problem: use a new thread to calculate seconds – Emily Mar 21 '17 at 09:19
-
What about AJAX? – Pham X. Bach Mar 21 '17 at 09:24
-
Ajax conflict with jquery and Bootstrap – Saurabh Mar 21 '17 at 09:26
-
@Emily , can you refer any example for it ? – Saurabh Mar 21 '17 at 09:26
1 Answers
2
You can use different techniques:
- Do server pulling via AJAX request by in some period. Good answered question on this topic - Server polling with JavaScript
- Use
SignalR
to send changes back to client when there was changes on server. You can read about it more here: How SignalR works internally?
Choose one that is applicable in your case
-
-
@Rahul With `Angular` you would implement server pooling. But it does not really matter how would you call `setInterval()` to call server for updates – klashar Mar 21 '17 at 09:37