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

Storing executed page in a variable

Status
Not open for further replies.

NewTerminator

Programmer
Apr 28, 2003
22
IN
Is there any way i can do something like this

strText = Server.Execute("test.asp")

What i want to achieve is that i want to execute an asp page and get the output in a variable. The asp page has server.execute statements inside it.

If i cannot do this in ASP, can i get it done using VB?

Any help would be appreciated.

Thanks in advance :)

 
The Server.Execute command doesn't return any values (to my knowledge), but you could use the XMLHTTP object to get the content of the page just as if you were trying to get the content of a remote site.

-Tarwn

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top