Results 1 to 4 of 4

Thread: response.buffer???/

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113

    Question 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!

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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)

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113

    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!

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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
  •  



Click Here to Expand Forum to Full Width