Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

include external page in asp

Posted on 2010-09-23
2
Medium Priority
?
441 Views
Last Modified: 2012-05-10
Hi,

Is there a way to do this in classic asp?  thanks
0
Comment
Question by:mcrmg
2 Comments
 
LVL 3

Expert Comment

by:LouSch7
ID: 33742683
If you are looking to include a truly external website, say www.google.com, see the code below:
<%
 dim objXMLHTTP
 URL = "http://www.google.com"

 Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
 objXMLHTTP.Open "GET", URL, false
 objXMLHTTP.Send

 Response.Write objXMLHTTP.responseText

 Set objXMLHTTP = Nothing
%>

Open in new window

0
 
LVL 7

Accepted Solution

by:
iopen earned 500 total points
ID: 33742727
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Loops Section Overview
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month21 days, 7 hours left to enroll

805 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