Do you see what I'm doing there?
I'm calling a JavaScript function every second which submits the page to the server if a counter (stored in a HiddenField) is greater than 0.
My server side code then subtracts one from a "counter" value, stores it in the HiddenField and returns to the browser....
Then the process starts over again.
There's no reason why you couldn't call your emailing functionality and store the number of emails still needing to be sent in the HiddenField...w hich the JavaScript method could check.
You could create a progress bar type thing using this concept.
It would be even smoother if you were to use Ajax ;) ;)
-Frinny
I'm calling a JavaScript function every second which submits the page to the server if a counter (stored in a HiddenField) is greater than 0.
My server side code then subtracts one from a "counter" value, stores it in the HiddenField and returns to the browser....
Then the process starts over again.
There's no reason why you couldn't call your emailing functionality and store the number of emails still needing to be sent in the HiddenField...w hich the JavaScript method could check.
You could create a progress bar type thing using this concept.
It would be even smoother if you were to use Ajax ;) ;)
-Frinny
Comment