asp bufferring behaves differently on iis 6 servers, code or confi

B

BS

Hi All,

This may be an old question, but there's little useful references online
that I've been able to find.

I want the following code to display bit by bit, not send all at once to the
client (IE).

The following code sample works as intended on all NT4 Wkstation PWS and on
*one* IIS6 W2K3 server. On all other W2K3 servers it does not, it waits and
sends the whole page at once.

BTW same effect if bufferring is true OR false!

What might cause the difference between 2 IIS 6 servers in this case? I'm
looking to IIS config rather than code ... but i'm open to suggestions there
too!

With Thanks,
BS

---- CODE SAMPLE ---
<% Response.Buffer = true %>


<%

Sub delay(n)
Dim endTime

endTime = dateadd("s", n, Now())
do while Now() < endTime
loop
End Sub


%>

<html>
<head>
<script language="javascript">
document.writeln ("js:header test<BR>");
</script>
</head>
<body>


<%

Response.Flush

Dim i

Response.Write "<HR>" & Now() & "<HR>" & vbCrLf

for i = 1 to 5
Response.Write "<script language=""javascript"">" & vbCrLf
Response.Write "document.writeln (""js:test " & CStr(i) & "<BR>"");" &
vbCrLf
Response.Write "</script>" & vbCrLf

delay (2)
Response.Flush
next

Response.Write "<HR>" & Now() & " All Done.<HR>"

%>


</body>
</html>

<% Response.Flush %>
---- CODE END ----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top