I have twenty articles may get more <% dim article(19) article(0)=article1 ..... article(19)=article20 for i=0 to UBound(article) arX=article(i) response.write arX&"<hr>" next %> my problem is: Every time I run the script, browser shows a blank screen for a long time to download all articles together. what I want is: How to load articles one by one to show on screen, so readers no need to wait for all 20 articles are ready. Please help, Thank you
ASP usually writes the page to a buffer while it's processing it. When it finishes processing it sends the completed thing to the client. To send the page as it is processing make this the first line in your ASP code: Response.Buffer=false This will make ASP write the content as it gets it. Another option is to include the following line before the Next in your loop: Response.Buffer=flush That causes to send the contents of the buffer at the time and then continue with whatever's next.