manual threading in asp.net - vb

Discussion in 'ASP .Net' started by Jon Paal, Oct 25, 2006.

  1. Jon   Paal

    Jon Paal Guest

    how can I make the connection to the database :
    --a separate thread ,
    --return a reader and then
    --close the thread ?
     
    Jon Paal, Oct 25, 2006
    #1
    1. Advertisements

  2. look at the threading nmespace. in general there is no good reason to do
    this in asp.net. website a re a request/response protocol. the browser
    requests an html page, asp.net builds one and sends it back. once the page
    is sent to the browser you cannot update it. this means to use a database
    thread, you need to stall the main thread until the database thread
    completes (say in page load, but no later than prerender). this stall will
    interfere with asp.net agile threading model.

    -- bruce (sqlwork.com)



    "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
    news:O67wZBG%...
    > how can I make the connection to the database :
    > --a separate thread ,
    > --return a reader and then
    > --close the thread ?
    >
    >
    >
     
    bruce barker \(sqlwork.com\), Oct 25, 2006
    #2
    1. Advertisements

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. Michael
    Replies:
    1
    Views:
    461
    Craig Deelsnyder
    Jan 6, 2004
  2. Jack Wright
    Replies:
    0
    Views:
    2,578
    Jack Wright
    Dec 21, 2004
  3. David
    Replies:
    1
    Views:
    813
    Brock Allen
    Mar 21, 2005
  4. Kevin
    Replies:
    1
    Views:
    460
    Kevin Spencer
    Jul 27, 2005
  5. Steve Cross

    Manual .Net 2.0 Framework Uninstall

    Steve Cross, Jul 17, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    698
    Juan T. Llibre
    Jul 17, 2007
  6. Replies:
    9
    Views:
    1,652
    Mark Space
    Dec 29, 2007
  7. Steven Woody
    Replies:
    0
    Views:
    657
    Steven Woody
    Jan 9, 2009
  8. beaudetious
    Replies:
    3
    Views:
    493
    beaudetious
    Dec 29, 2005
Loading...