• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

ASP - INCLUDING OUTSIDE WEBPAGE

Alright...I have this page (http://joshuadumas.com/clients/InTouch/aptcor/properties/) and would like to add this page (http://www.loopnet.com/Listings/aptstein@comcast.net) as the text...how can this be done without recoding the entire page...can I do an include statement...and where and how would I do that?
0
duemes
Asked:
duemes
1 Solution
 
reiss20Commented:
Hi duemes,

What about just using frames?

Reiss :o)
0
 
duemesAuthor Commented:
yea i was thinking that, but didnt know if i could get away with using an include or something
0
 
reiss20Commented:
Hi duemes,

<%
 ' Intruduce the url you want to visit
 GotothisURL = "http://www.loopnet.com/Listings/aptstein@comcast.net

 ' Create the xml object
 Set GetConnection = CreateObject("Microsoft.XMLHTTP")
 ' Conect to specified URL
 GetConnection.Open "get", GotothisURL, False
 on error resume next
 GetConnection.Send

 ' ResponsePage is the response we will get when visiting GotothisURL
 ResponsePage = GetConnection.responseText

' We will write
if ResponsePage="" then
Response.write("The page is not available")
else
Response.write(ResponsePage)
end if

 Set GetConnection = Nothing
%>
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jmundsackCommented:
You could do something like:

    url = "http://www.loopnet.com/Listings/aptstein@comcast.net"
    Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
    xmlhttp.open "GET", url, False
    xmlhttp.send ""
    Response.Write xmlhttp.responseText
0
 
reiss20Commented:
Don't think an include would work as it includes files that are on the same server, not remotely.

You can try the 2 solutions i've suggested see what works best for you.

Hope that helps,

Reiss :o)
0
 
duemesAuthor Commented:
I took reiss20 suggestion and it works, but go back on the site http://joshuadumas.com/clients/InTouch/aptcor/properties and tell me why I dont get the headings, but if you hover over underneath the large graphic at the top of page somethings do come up, but the heading bar across the page dosent...WHY?
0
 
Leo EikelmanCommented:
I don't know if you want to take this into consideration but I am at work on a fairly fast connection and your page takes approximately 15-20 seconds to completely load.

I don't know if this is because of the include statement or not.  Might want to look into it.

Leo
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now