|
-
May 10th, 2001, 05:07 PM
#1
Thread Starter
Lively Member
response.buffer???/
Hi all
can anyone tell me why the line response.buffer=true should be included and when it should be in an asp page.
In my asp page which seems to work locally so far, I havent used response.buffer=true at all.
Thanks in advance
You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!
-
May 10th, 2001, 06:25 PM
#2
Good Ol' Platypus
Response.Buffer holds the info (doesnt disp. the page in pieces), until you use response.flush or response.end, it will also disp. the data at the end of the ASP file.
The reason to use this is because (in my mind) response.redirect. You cannot use this call if the page has been written to and the viewer has seen data. (dont ask me why!!) so using response.buffer will ensure they dont see anything.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
May 11th, 2001, 05:36 AM
#3
Thread Starter
Lively Member
Still not really sure
What do u mean by hold the data? Thanks for the explanation Imjust still not sure what you mean. what is "disp."?
I use response.redirect without a response.buffer and it still works
You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!
-
May 11th, 2001, 06:25 AM
#4
Black Cat
response.redirect. You cannot use this call if the page has been written to and the viewer has seen data. (dont ask me why!!)
Response.Redirect uses an HTTP HEADER. If you've sent the viewer data (most likely html), then you've already sent them all the http headers, and can't send them another header. By definition, headers have to come first. Response.Buffer allows you to not send anything to the viewer until you say to or your script ends.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|