Save Response.Buffer output to Session

Posted on 2008-11-08
Last Modified: 2012-05-05

I'm back again.

I've done a bit of research on the Response object and apparently you can process the script of a web page and buffer the content by setting response.buffer = true

Then you can send use Response.Flush to output the content to the client.

Is there a way to write the buffered content to a Session variable prior to using the Flush method so I can reuse it later?

Question by:tuckandroll
    LVL 54

    Accepted Solution

    No.  Not in ASP (Classic).  Using True gives you control over the buffer (i.e. clear, flush) but it is pretty limited.  You can't send it somewhere else.

    Let me know how this helps or if you have a question.

    LVL 54

    Expert Comment

    Please explain the B grade.  Since the comment was an answer and complete enough that you didn't need a follow up it would deserve an A grade.  If a mistake was made or you have a question about grading on EE then let me know.  If you actually still have a question and didn't mean to close this please let me know.  Otherwise please explain the grade, especially since you never posted a follow up response.

    Author Comment

    Sorry about that bol. It should have been an A originally.
    LVL 54

    Expert Comment

    Thanks for the response.  I am glad it was just a mistake.  The moderator has already corrected it but thanks for the post to let me know.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now