I have a screen that does a lengthy processing, and there is a for that every next , I want to set a label for the user to see the process. p>
I know it can be done by ajax, but I did not find anything as an example. Can anyone help?
I have a screen that does a lengthy processing, and there is a for that every next , I want to set a label for the user to see the process. p>
I know it can be done by ajax, but I did not find anything as an example. Can anyone help?
I know it was not the best solution, but I needed to be fast and as I had already rolled google and nothing helped I decided to do it that way.
On the screen that does the processing, where it has the loop, at the click of the button, I call a javascript function that opens a popup and the onclick of the server remains the same. In the loop I set the status in application , how many% and some more information. In the new popup I have a Timer that requests ( OnTick ) every 10 seconds. In the method it requests, I retrieve the status of the application and seto in labels on the screen.
That is, every 10 seconds is updating to the user how the processing is.