473,386 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Response.buffer doesnt work

Hello,
I am testing buffering an asp page and Flushing information out to the
browser, hence i wrote the code in an asp page that follows this Message
Post.

The loops are suppose to simulate long search processes with a flush after
each search.
When i Navigate to the page, redirect to it from another page, or type the
URL to this page in the browser, the page is buffered until it reaches the
end of the file and is then displayed all at once instead of being flushed
at the appropriate interval i set. If i then right click in IE 6 and click
'refresh' then sometimes the page actually buffers out one text box about
every 5 seconds which would be correct, but this doesnt happen everytime.
It only seems to flush about 50% of the time, and only if I manually click
refresh.

If i change the response.buffer to equall False and remove the Flush
statements, hence it should display as it is processed, the browser still
doesnt display the page until the entire asp file is processed.

Can anyone tell me what i am doing wrong or if i have something set wrong.

I have Internet Information server 5.1 installed, the option for Buffering
is turned on, as does this page reaffirm that.

Regards,
Daniel Copa
Georgia Farm Bureau
<%@ Language=VBScript %>
<%
Response.Buffer =True
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<%
dim i, x

For i = 0 To 65526
For x = 0 To 200
next
Next
for i = 0 to 1000
Response.write i
next
Response.write "<INPUT id=hTotalItems name=hTotalItems value=""3""><BR>"
Response.Flush

For i = 0 To 65526
For x = 0 To 200
next
Next
for i = 0 to 1000
Response.write i
next
Response.write "<INPUT id=hItem1 name=hItem1 value=""1""><BR>"
Response.Flush
For i = 0 To 65526
For x = 0 To 200
next
next
for i = 0 to 1000
Response.write i
next
Response.write "<INPUT id=hItem2 name=hItem2 value=""2""><BR>"
Response.Flush
For i = 0 To 65526
For x = 0 To 200
next
Next
for i = 0 to 1000
Response.write i
next

Response.write "<INPUT id=hItem3 name=hItem3 value=""3"">"
%>
</BODY>
</HTML>

Jul 19 '05 #1
0 2562

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: alex | last post by:
I need your help, please. The following 2.asp is a demo for flush function. It works. BUT when I put it in a frame, it dosen't work. Is any IE limitation, something else. Alex ...
6
by: | last post by:
Hello, I hope someone will help me or I will have to dive from 11th floor. Why this --> test = @"Melanie "Jets" Riggs" doesnt work in asp? I need something like that and I dont know how to make it...
11
by: Savas Ates | last post by:
CREATE PROCEDURE st_deneme @userid numeric (18) ,@result numeric (18) output AS select * from users return "10" GO **************************** <!--METADATA TYPE="typelib" NAME="Microsoft...
7
by: Stephanie | last post by:
If response.buffer is set to true, and no response.flush has been executed, is it accurate to expect that my browser should not be rendering the content which I (well Ok, someone else) is sending...
2
by: Deepak Kashyap | last post by:
I have placed Response.Buffer = True in the page load event. But when the page gets displayed on the browser, it does not buffer completely and then display, it works as Response.Buffer = False. Is...
5
by: Joe | last post by:
Could someone please explain the practical differences between Response.Buffer and Response.BufferOutput? TIA, -- Joe VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation
2
by: Steven Bazeley | last post by:
I had a download failure problem with a 95MB wmv file. I thought it was my code but I could not find anything wrong. So I tested the download by replacing the 95MB file with a smaller one...
12
by: Jim Rodgers | last post by:
I have a big asp file that has an error under certain conditions -- totally repeatable. However, it only fails when I set response.buffer = True at the top. WHen I set it False in order to debug...
2
by: Ron Hinds | last post by:
I'm getting this in an ASP application on IIS6/W2K3. The page in question is trying to return a XML file approximately 45MB in size. Changing this is not an option. Worked fine on IIS5/W2K. I tried...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.