I
Imran
I have an asp.net application that uses multithreading to allow for progress
bar aproach while its doing its work in the backgroung in the secondary
thread. the main thread is just refreshing the page while the backgroung
secondry thread is doing the actual processing. When my secondary thread is
finished, i like to save a dataset to the session object ( i am using SQL
server basesed persistance ) so that my main thread can access it. Problem
is that my seconday thread is not running in the page request context
because "httpcontext.current.session" is not valid when i try to access it
in my secondry thread routine.
So, i get an error like "session state is not enabled". How do i spawn
thread which is aware of its context objects when done ?
Any help is greatly appreciated.
Imran
bar aproach while its doing its work in the backgroung in the secondary
thread. the main thread is just refreshing the page while the backgroung
secondry thread is doing the actual processing. When my secondary thread is
finished, i like to save a dataset to the session object ( i am using SQL
server basesed persistance ) so that my main thread can access it. Problem
is that my seconday thread is not running in the page request context
because "httpcontext.current.session" is not valid when i try to access it
in my secondry thread routine.
So, i get an error like "session state is not enabled". How do i spawn
thread which is aware of its context objects when done ?
Any help is greatly appreciated.
Imran