Starting/Stopping a thread with a Web Page

T

traviscook88

I have successfully started a new thread that is performing a long
task. I am using C# and am fairly new to it and am wondering, where do
I store a reference to that running thread? I want to have another
page come in later and check on the status and to be able to stop that
thread.

Thanks.
Travis
 
A

Alvin Bruney - ASP.NET MVP

try a static variable or anything global in scope possibly placed in the
application object. If the variable is local to the page, another page will
not be able to obtain a reference to it.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,084
Latest member
HansGeorgi

Latest Threads

Top