DoEvents in ASP?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dennis Eklund

    DoEvents in ASP?

    Hi all.

    I have a question if there is some kind of DoEvents statment in ASP?
    Im currently programming a web page that exports lots of images from an SQL
    server to file and
    it takes up to 1 or 2 minutes to finish. I would like to get some
    information out on the webpage for
    every file exported. Using response.write in the loop won't display until
    the loop is finished.
    Any suggestions? Please e-mail me at total@lmao.cc


  • Bob Barrows

    #2
    Re: DoEvents in ASP?

    Dennis Eklund wrote:[color=blue]
    > Hi all.
    >
    > I have a question if there is some kind of DoEvents statment in ASP?
    > Im currently programming a web page that exports lots of images from
    > an SQL server to file and
    > it takes up to 1 or 2 minutes to finish. I would like to get some
    > information out on the webpage for
    > every file exported. Using response.write in the loop won't display
    > until the loop is finished.
    > Any suggestions? Please e-mail me at total@lmao.cc[/color]

    You need to turn buffering on and use response.flush to send partial pages
    to the client. I just posted an example of doing this - see the "Updating
    textbox contents during asp progress" thread.

    HTH,
    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Comment

    Working...