Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capturing HTML generated from ASP page

Status
Not open for further replies.

andyb99uk

Programmer
Joined
Dec 6, 2004
Messages
5
Location
GB
Hi all,

I am trying to generate a pure HTML page based on an asp page. Does anyone know how to (in another asp page), run an asp page and capture the HTML that is generated. I need to do this all in the code so I can then email the HTML thats generated.
I know you can do this in .NET using server.execute but does this apply to normal ASP.
If anyone has an example of this, I would be most happy!

Cheers.
Andy.
 
Why not posting in the ASP forum ?
 
I am doing something pretty close to this using some freeware called Toolsack Baseline (toolsack.com). It is pretty simple to use the objects in it call a page and store the results in a string. The SMTP mailer with it works like a charm too. If memory servers I'm using ~10 lines to code to pull the page and email it.
 
THat sounds like a good tool, I may give it a go.

I was thinking about calling the asp page in a hidden frame and then using javascript to access the inner.html

If this doesn't work, I'll give yours a go, thanks.

PS. Sorry, didn't see an ASP forum and this was the nearest one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top