D
DaWoE
Hi all,
I have create an method that takes a while to process so my website
times out.
I used a thread to make sure the page doesn't times out.
The methode that i use to the processing is another the class than my
webform.
Public Class MyClass
Public Sub ProcessWork()
'this code takes at least 10 minutes to run
End Sub
End Class
This is my code when the user clicks a button
Dim obj as New MyClass
Dim objThread As New Thread(AddressOf MyClass.ProcessWork)
objThread.Start()
This code in process works executes fine now, but i want to make the
user aware that it is already running. How can I know if the thread is
still running ?
I have create an method that takes a while to process so my website
times out.
I used a thread to make sure the page doesn't times out.
The methode that i use to the processing is another the class than my
webform.
Public Class MyClass
Public Sub ProcessWork()
'this code takes at least 10 minutes to run
End Sub
End Class
This is my code when the user clicks a button
Dim obj as New MyClass
Dim objThread As New Thread(AddressOf MyClass.ProcessWork)
objThread.Start()
This code in process works executes fine now, but i want to make the
user aware that it is already running. How can I know if the thread is
still running ?