Solved

Get HTML code from server

Posted on 1998-09-17
12
184 Views
Last Modified: 2010-04-09
How can I get the HTML code at the end of an ASP from the server's buffer in order to be able to record it in a file on the Server?
0
Comment
Question by:julio_exp
12 Comments
 
LVL 1

Expert Comment

by:Patricia080698
ID: 1837896
what do you want to record in your asp file ? be a more specifique please.
0
 
LVL 2

Expert Comment

by:vendrig
ID: 1837897
You can write all your HTML code to a string variable (your own buffer). At the end you save that string to a file using the filescriptingobject. Then you do a Response.write(string).
Does this help you?
0
 

Author Comment

by:julio_exp
ID: 1837898
Patricia, Were are you from?

Necesito capturar el código HTML generado por ASP.DLL para guardarlo en un file.
0
 
LVL 2

Expert Comment

by:vendrig
ID: 1837899
Julio, it appears you want to do exactly what I told you. Only question is if you want to send to the client the entire result at once, or in chunks.
0
 

Expert Comment

by:AnitaP
ID: 1837900
julio_exp : please explain a bit more what you want to do.
0
 
LVL 2

Expert Comment

by:vendrig
ID: 1837901
AnitaP: I don't know if he speaks Spanish or Portuguese, but fortunately I learnt Latin;)
"It's necessary to capture the HTML code generated by the ASP DLL to save it on file."
I think he wants to have an archive of pages shown to user. Don't ask why;-)
0
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

 

Author Comment

by:julio_exp
ID: 1837902
After a complicates steps, a customer make a list of items.
I need this page: saved in a file.
Then I mail it to customer as a html file.


0
 
LVL 2

Expert Comment

by:vendrig
ID: 1837903
Be careful: don't confuse client (customer) and server (ASP/mail)!
So you have variables that contain the choices of the customer. Also, you can make an HTML file of them. That's what you got so far, right?
Instead of writing the HTML directly to the client, save it to a string (e.g. result = result & "<B>100</B>"). When finished, you write the entire string to file. Then you can mail that file or do with it whatever you want.
If that's what you want, but you don't know how to write the resulting string to a file on your server by way of ASP, ask me here.

0
 
LVL 11

Accepted Solution

by:
mouatts earned 50 total points
ID: 1837904
If you obtain the IIS Rersouce Kit (from Microsoft) it includes on the CD the software that grabs the HTML produced by from the ASP so that it can be cached.

I presume that this is done by writing an ISAPI DLL that hooks into the HTML/ASP parsing (this is how you would do this sort of thing on most other servers).

Steve
0
 

Author Comment

by:julio_exp
ID: 1837905
I not want save all html code in intermediate variable.
This is very difficult
0
 
LVL 2

Expert Comment

by:vendrig
ID: 1837906
Of course you have the right to not want to save the code in an intermediate variable, but it's not difficult at all. In fact, I always store the code in a variable, because it's easier to debug and mix in other variables.
The advantage of this approach is that you can execute the mail component from the very same page.
0
 

Author Comment

by:julio_exp
ID: 1837907
IIS3 or 4 ?
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

705 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

19 Experts available now in Live!

Get 1:1 Help Now