Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 471
  • Last Modified:

Save Response.Buffer output to Session

Family,

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?

Thanks.
0
tuckandroll
Asked:
tuckandroll
  • 3
1 Solution
 
b0lsc0ttCommented:
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.

bol
0
 
b0lsc0ttCommented:
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.
bol
0
 
tuckandrollAuthor Commented:
Sorry about that bol. It should have been an A originally.
0
 
b0lsc0ttCommented:
tuckandroll,
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.
bol
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now