Hi katie,

put


Response.buffer = True

at the very top of the page.

This will buffer the output instead of sending data for
each loop.

At any point, if you need to send out data to client before
continuing processing. use.

Response.Flush