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:rolleyes:
Printable View
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:rolleyes:
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.
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
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.Quote:
response.redirect. You cannot use this call if the page has been written to and the viewer has seen data. (dont ask me why!!)