|
|
|
|
|
| | |
|
PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Retrieving HTML output source before sent to client |
From: |
Chris S |
Date: |
8/31/2000 1:56:24 AM |
IP: |
24.108.140.215 |
Without writing an ISAPI application or potentially a COM object to handle this for you, you could make the entire output of the page a string variable. Then you could pass the variable to some function and execute a response.write at the end of your code to display the page to the browser.
example:
<% Dim myPage
myPage = "<html><head></head><body>"
%>
Then have ASP code after that dynamically generates your page and concatenates the output to this variable. At the end of the file have:
<%
code to pass myPage to function, etc...
response.write myPage to send to browser
%>
I have never tried this so I am not sure how long of a string a single variable can handle. Maybe you could break it up between a few variables. This method obviously depends on how much code is in the page and how many pages you have to do this for. I would not want to do this for more than a page or two. |
Previous Message
|
|

|
|
|
|
|
|
|
|
|
|