N
n#
I have a long running task to be called from an aspx page.
My code segment
Dim ts As ThreadStart = New ThreadStart(AddressOf runLRProcessAsync)
Dim workerThread As Thread = New Thread(ts)
workerThread.Name = "LRProcess1"
workerThread.Start()
Response.Redirect("LRProcessResult.aspx?Refresh=N)
Everything works fine when the long running process is really a time
consuming operation.
But in some cases when the long running process is not really that
long, my response.redirect never gets executed.
I introduced aritifical slow downs by using Thread.Sleep. But of no
use.
Please help me.
My code segment
Dim ts As ThreadStart = New ThreadStart(AddressOf runLRProcessAsync)
Dim workerThread As Thread = New Thread(ts)
workerThread.Name = "LRProcess1"
workerThread.Start()
Response.Redirect("LRProcessResult.aspx?Refresh=N)
Everything works fine when the long running process is really a time
consuming operation.
But in some cases when the long running process is not really that
long, my response.redirect never gets executed.
I introduced aritifical slow downs by using Thread.Sleep. But of no
use.
Please help me.