Starting/Stopping a thread with a Web Page

Discussion in 'ASP .Net' started by traviscook88@gmail.com, Nov 4, 2005.

  1. Guest

    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
     
    , Nov 4, 2005
    #1
    1. Advertising

  2. 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
    -------------------------------------------------------



    <> wrote in message
    news:...
    > 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
    >
     
    Alvin Bruney - ASP.NET MVP, Nov 4, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rhino
    Replies:
    0
    Views:
    1,481
    Rhino
    Nov 15, 2003
  2. Paul Hampton
    Replies:
    0
    Views:
    348
    Paul Hampton
    Jul 3, 2003
  3. dfaber
    Replies:
    1
    Views:
    364
    Amit Khemka
    Jul 4, 2006
  4. -intl.com
    Replies:
    1
    Views:
    371
    Martin Gregorie
    Oct 22, 2006
  5. Replies:
    8
    Views:
    315
    Ian Wilson
    Nov 10, 2006
Loading...

Share This Page