write response while processing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • auctiontrading@gmail.com

    #1

    write response while processing

    Hi all
    I have a method that will run through a lot of data and write it out.
    I am simply writing the data out as response.write( ).

    The problem I am having is that the the response does not show up
    until ALL the processing in the method is performed before writing it
    out to the screen. How would I write to the screen while the method is
    still working without having to wait until the entire method is
    complete? It would take a few minutes for the page to show.

    i.e.
    private sub doWork
    while i < x
    if something = true
    response.write( "output")
    end if
    end while
    end sub
  • Teemu Keiski

    #2
    Re: write response while processing

    Hi,

    you should be able to use response flushing e.g Response.Flush
    (http://msdn.microsoft.com/en-us/libr...nse.flush.aspx)

    --
    Teemu Keiski
    AspInsider, ASP.NET MVP





    <auctiontrading @gmail.comwrote in message
    news:b2252c14-7f7e-4e47-976b-6175b402caa9@p2 5g2000hsf.googl egroups.com...
    Hi all
    I have a method that will run through a lot of data and write it out.
    I am simply writing the data out as response.write( ).
    >
    The problem I am having is that the the response does not show up
    until ALL the processing in the method is performed before writing it
    out to the screen. How would I write to the screen while the method is
    still working without having to wait until the entire method is
    complete? It would take a few minutes for the page to show.
    >
    i.e.
    private sub doWork
    while i < x
    if something = true
    response.write( "output")
    end if
    end while
    end sub

    Comment

    Working...