Save Response.Buffer output to Session


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?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

b0lsc0ttIT ManagerCommented:
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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
b0lsc0ttIT ManagerCommented:
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.
tuckandrollAuthor Commented:
Sorry about that bol. It should have been an A originally.
b0lsc0ttIT ManagerCommented:
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.