Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"response.buffer = false" statement is not working

143 views
Skip to first unread message

Steve Quezadas

unread,
Aug 15, 2001, 8:24:10 PM8/15/01
to
Guys,

It seems that "response.buffer = false" is not working. I need teh ASP page
to print PROGRESSIVELY what's going on. I have a long script to run and it
would be more assuring to the user to see the web page go as it's running.
Well, it doesn't work. here's a greatly simplified version of what I'm
trying to do. I craeted a simple for-next loop to mimic a "slow loop". I am
running WIndows 2000 with IIS 5.0.

I've been trying to figure this one out all day.

- Steve

<% response.buffer = false %>
<HTML>
<BODY>
<%

for i = 1 to 10000000
next
Response.Write "Iteration #1<BR>"

for i = 1 to 10000000
next
Response.Write "Iteration #2<BR>"

for i = 1 to 10000000
next
Response.Write "Iteration #3<BR>"

%>
</BODY>
</HTML>


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
Check out our new Unlimited Server. No Download or Time Limits!
-----== Over 80,000 Newsgroups - 19 Different Servers! ==-----

Jon Mundsack

unread,
Aug 15, 2001, 8:35:07 PM8/15/01
to
Have you tried:

Response.Buffer = True
(do something)
Response.Flush
(do something else)
Response.Flush
(etc...)

"Steve Quezadas" <stev...@earthlink.net> wrote in message
news:3b7b1255$1...@goliath.newsgroups.com...

Manohar Kamath [MVP]

unread,
Aug 15, 2001, 8:34:41 PM8/15/01
to
Could you be more specific? What do you mean it does not work? Do you get an
error?

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com


"Steve Quezadas" <stev...@earthlink.net> wrote in message
news:3b7b1255$1...@goliath.newsgroups.com...

J Natale

unread,
Aug 16, 2001, 4:17:20 PM8/16/01
to
I believe a <%%> block is processed synchronosly, so try putting each loop
in seperate <%%> blocks


_____________________________
Jason Natale
Navantis Inc.
Toronto ON


"Steve Quezadas" <stev...@earthlink.net> wrote in message
news:3b7b1255$1...@goliath.newsgroups.com...

Steve Quezadas

unread,
Aug 16, 2001, 4:21:08 PM8/16/01
to
> Could you be more specific? What do you mean it does not work? Do you get
an
> error?
Yes, I am sorry. When I say "It doesn't work" I mean that it shows the page
in one fell swoop instead of showing the page render progressively
"Iteration #1", "Iteration #2", etc.

Here is a repost of my question. I am knocking my head trying to figure this
out, and the previous questions on newsgroups isn't shedding light on this
one.

Zisha Weinstock

unread,
Aug 23, 2001, 5:29:25 PM8/23/01
to
I've had the same problem and after some testing it appears that you
need to send at least 256 bytes for the response.flush to work. So do
something like Response.Write "Iteration #1<BR>" & Space(256) and it
should work.


"Steve Quezadas" <stev...@earthlink.net> wrote in message news:<3b7c2ae0$1...@goliath.newsgroups.com>...

0 new messages