Hi,
I'm not completely into Threads on web or win forms. How can I create a Browser object for each thread and execute a method with this thread? How can I define dinamically how many Threads will my page use? How can I pause and how can I stop a thread execution (or maybe stop all threads)?
I saw many articles about threads, but I need one with more than examples that show "B" sometimes and after executing another thread, shows "A" also...
I need more complex samples with explanation and about using threads on UI elements.
Thanks.
Threads in a page is a bad idea, then the Page_Unload even happens, the threads will terminate. Best way to use that is in a webservice or I love the way Telligent use timers and Jobs in CommunityServer.org. You can download the code from their websitehttp://communityserver.org and look for a file job. I was going to post it here, but that could go against their copywrite as is not my code to share!
More info about jobs in CS herehttp://alpascual.com/blog/al/archive/2006/09/12/Community-Server-2.0-using-Timers_3F00_.aspx
This is an simple exampleThreading in ASP.NET .hope it helps.
I don't think you can do that in a page, MS has explain that a thread will be suspended when the page unloads
0 comments:
Post a Comment