Getting html output of a asp page to a string

M

Mark Marsella

I wish to catch the output of an asp page after it is executed into a
string I.e.
Dim htmlOutput
htmlOutput = someobject.execute("nameoffile.asp")
 
B

Bullschmidt

Using Microsoft's XMLHTTP Object to Get Data From Other Web Pages by
Richard Lowe - 11/1/2000
http://www.4guysfromrolla.com/webtech/110100-1.shtml
"Retrieve data from other web sites."

How do I read the contents of a remote web page? - 5/2/2001
http://www.aspfaq.com/faq/faqShow.asp?fid=119

Best regards,
J. Paul Schmidt, Freelance ASP Web Consultant
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
D

dlbjr

Function ProcessUrl(strUrlAddress)
ProcessUrl = ""
Set objXMLHTTP = CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.open "GET",strUrlAddress, false
objXMLHTTP.send
ProcessUrl = objXMLHTTP.ResponseText
Set objXMLHTTP = Nothing
End Function

'dlbjr

'Unambit from meager knowledge of inane others,engender uncharted sagacity.
 
M

Mark Marsella

Function ProcessUrl(strUrlAddress)
ProcessUrl = ""
Set objXMLHTTP = CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.open "GET",strUrlAddress, false
objXMLHTTP.send
ProcessUrl = objXMLHTTP.ResponseText
Set objXMLHTTP = Nothing
End Function

'dlbjr

'Unambit from meager knowledge of inane others,engender uncharted sagacity.
thanks for the code, but im getting a error message on this line
objXMLHTTP.open "GET",newsPage, false

the error message is
Error Type:
(0x80004005)
Unspecified error
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,408
Latest member
AlenaRay88

Latest Threads

Top