Hi.
I have a long loop in ASP that performs a rather lengthy calculation. I would love for my users to be able to stop that calculation, if they so choose, mid way through the process.
I attempted to use a parent window that allows the user to launch the calculation in a seperate window, so that they could still click "stop" to write a value to a database or set a session level variable that the calculation would check to see if it should stop. Unfortunately, because these child windows are part of the same thread as the parent window, once the calculation starts, the database write or session variable cahnge doesn't occur until after the calculation completes.
So far I have kludged it with a line that says "To stop this calculations, copy this link into a new web browser window." This works, cuz a new window is a new process so the database write occurs during the calculation and the calculation then stops. But this way seems dumb. I am hoping there is something like DoEvents, or another threading mode that would let me run a query in a child window while the calculation is in progress.
Please help!