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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

saving asp into a text file

Status
Not open for further replies.

qsac

Programmer
Jan 22, 2002
242
US
I am trying to execute an asp script on an asp page and save the resulting html into a variable.

any ideas?
 
we need a little more info than that, code?

How much HTML code, one file or two, etc


Regards,


Lewis Harvey
lewis@lharvey.com
 
here is a better desc

here is the code i use to get the html from an html file:

------------------------------------------------------
ThePath = server.mappath("../admintools/news.htm")

Set fs = CreateObject("Scripting.FileSystemObject")
Set body = fs.OpenTextFile(ThePath, 1, False)


abcd = body.readall

-----------------------------------------------------

so now abcd contains the entire htm file. I want to do this same thing except with an asp page. So i would want to execute the asp code and than save the resulting html in abcd.

i hope this is better
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top