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

Discussion in 'ASP General' started by BS, Aug 24, 2004.

  1. BS

    BS Guest

    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 ----
     
    BS, Aug 24, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Do
    Replies:
    1
    Views:
    359
    Natty Gur
    Nov 16, 2003
  2. Simon Kennedy
    Replies:
    0
    Views:
    356
    Simon Kennedy
    Jan 30, 2004
  3. =?Utf-8?B?RHIuIFBhdWwgQ2Flc2FyIC0gQ291bGxCeXRlIChV

    FORMS NOT SUBMITTING DUE, IIS CRASH: appSettings KEY in web.confi

    =?Utf-8?B?RHIuIFBhdWwgQ2Flc2FyIC0gQ291bGxCeXRlIChV, Nov 4, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    570
    =?Utf-8?B?RHIuIFBhdWwgQ2Flc2FyIC0gQ291bGxCeXRlIChV
    Nov 4, 2005
  4. tom c
    Replies:
    6
    Views:
    526
    tom c
    Sep 6, 2006
  5. CreepieDeCrapper

    code behaves differently on different servers

    CreepieDeCrapper, Apr 5, 2005, in forum: Javascript
    Replies:
    5
    Views:
    158
    Grant Wagner
    Apr 7, 2005
Loading...

Share This Page