I can pass a Session variable TO a thread as a parameter and use it there as needed. And there are other ways of accomplishing that.
BUT I want to have the Thread routine run a process and calculate a value (e.g. a Percent Complete) which I need to have sent BACK to the primary server code. Perhaps out of my ignorance, the easiest way would appear to be by using something like a Session variable.
Yes, I have read about having the Thread writing out the value to some table/file/etc. and then having the primary code read that value, but that seems pretty time-consuming. I am hoping that there is another easier/faster way.
I am looking for a progressively updated value from the Thread to be passed in some manner BACK to the Primary server code where it can be reflected in an AJAX UpdatePanel ProgressBar by the panel's 'trigger' - the Timer.Tick event.
Any assistance/advice/suggestions you might have to offer would be greatly appreciated.
Thanks,
JRB-Bldr
BUT I want to have the Thread routine run a process and calculate a value (e.g. a Percent Complete) which I need to have sent BACK to the primary server code. Perhaps out of my ignorance, the easiest way would appear to be by using something like a Session variable.
Yes, I have read about having the Thread writing out the value to some table/file/etc. and then having the primary code read that value, but that seems pretty time-consuming. I am hoping that there is another easier/faster way.
I am looking for a progressively updated value from the Thread to be passed in some manner BACK to the Primary server code where it can be reflected in an AJAX UpdatePanel ProgressBar by the panel's 'trigger' - the Timer.Tick event.
Any assistance/advice/suggestions you might have to offer would be greatly appreciated.
Thanks,
JRB-Bldr