Instead of just Response.Write'ing your content out, set up a local variable
and write the various bits 'n' pieces to it:
Dim strPageHtml
' Buffer the HTML to a local variable, strPageHtml
strPageHtml = ""
strPageHtml = strPageHtml & "<html>"
strPageHtml = strPageHtml & "<head>"
....
strPageHtml = strPageHtml & "</body>"
strPageHtml = strPageHtml & "</html>"
....
' Output the HTML - this will display the content on-screen.
Response.Write strPageHtml
I'm not suggesting that you'll be able to do this without reorganising your
code though. You might display the HTML content onscreen along with, say, a
small form at the bottom of the page. The form contains a hidden control
whose value is the strPageHtml variable you created when buffering the page.
The form is submitted when the user elects to save the report to the
database, and when this happens you post the value of the variable (the page
HTML) to the processor where it can be written to the database.
Alan
"Jim Rudnick" <jr******@kkti.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Hmmm...exactly what does "buffer the string" in this context mean?
The html report is the result of a query on another text file and it
will be pretty plain, but will have a table in it for sure.
So, how do I "buffer" same? I know how to write a string to a dbase,
just not how to read an onscreen .html page into that string???
;-)
Jim
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!