Thanks,
how can I include an URL in ASP like we do for file as:
<!--#include file="info.asp" -->
I did try with url link to this file info.asp but it is not working
<!--#include file="http://www.jsant.net
Main Topics
Browse All TopicsHi,
I want to display the content of any URL in my page but i don't want to use iframe or frameset because when i "Save As" it should save all content of that URL i am passing to this age.
Means
1. i have a page abc.html or abc.asp
2. i am calling the data from any URL in this page
3. when i make it "Save As" it should save all the data(content of abc.htm + content of URL)
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thanks,
how can I include an URL in ASP like we do for file as:
<!--#include file="info.asp" -->
I did try with url link to this file info.asp but it is not working
<!--#include file="http://www.jsant.net
You can not use SSI from a different domain. In fact SSI has to be from the same server (physicaly path) or same virtaul dir (virtual path).
You should use XMLHttp for this purpose. Here is how
<%@ Language=VBScript %>
<%
option explicit
%>
<%
dim oXMLHttp
set oXMLHttp = server.Createobject("MSXML
Call oXMLHttp.Open("GET", "http://www.google.com", false)
Call oXMLHttp.Send()
Dim sResponse
sResponse = oXMLHttp.ResponseText
call Response.Write(sResponse)
set oXMLHttp = nothing
%>
Hi amit_g,
Thanks a lot, your solution is working fine.
But the URL i an trying to retrive is in CGI and not working as this is an ASP file
http://www.lodging.com/aut
is there any solution for this. also i want to retrive the complete page as in this solution this take relative path of my local server and didn't download the images & links going wrong.
I want my page look like a perfact page as in iframe.
It doesn't matter what language is used for the URL. Every language produces plain HTML/JavaScript and that is what you will get. The ResponseText will contain exactly what you will see in View Source of any page in any browser.
Since most sites will not only use relative URL but also will use some JavaScript, the ResponseText will have to be parsed. I am not sure what you are trying to do but if you want to display complete page as it is you either are looking for complex parsing or should use iframe or frame.
Parse the ResponseText. Look for <head> tag and add
<base href="http://www.TheSiteYo
Something like this ...
<%@ Language=VBScript %>
<%
option explicit
%>
<%
dim oXMLHttp
set oXMLHttp = server.Createobject("MSXML
Call oXMLHttp.Open("GET", "http://www.google.com", false)
Call oXMLHttp.Send()
Dim sResponse
sResponse = oXMLHttp.ResponseText
sResponse = Replace(sResponse, "<head>", "<head><base href='http://www.google.co
call Response.Write(sResponse)
set oXMLHttp = nothing
%>
What are you trying to achieve by this?
Perfect Looking Problem solved.
But still i'm not able to use that cgi URL in my page as my .asp file is running on IIS.
Error Type:
msxml3.dll (0xC00CE56E)
System error: -1072896658.
I mean i'm able to get "http://www.lodging.com" but not "http://www.lodging.com/au
That is because the server returns Found 302 - the response that the server sends on Response.Redirect. The redirected URL is
http://reservations.lodgin
As I have written before, there is so much more that the browser does, than just displaying the HTML content. If you are thinking of doing it for one or two page, you can do so but if you are thinking of doing more than that, you are looking for building another browser.
You did not tell what your goal is by doing all this.
Hi,
My goal: i want to create a website based on lodging affiliate database of selected URLs with my formatting of header, footer, left navigation etc.
like
http://www.lodging.com/aut
http://www.lodging.com/aut
http://www.lodging.com/aut
http://www.lodging.com/aut
Business Accounts
Answer for Membership
by: afshPosted on 2003-07-18 at 01:22:18ID: 8949931
I think you can use SSI include syntax for your ide. its load your second file an snap it on the first file.
use :
<!-- #include PathType = FileName -->
Parameters
PathType
Specifies the type of the path to FileName. The path type can be one of the following: Path Type Meaning
File The file name is a relative path from the directory containing the document with the #include directive. The included file can be in the same directory or in a subdirectory; it cannot be in a directory above the page with the #include directive.
Virtual The file name is a full virtual path from a virtual directory in your Web site.
FileName
Specifies the name of the file to be included. FileName must contain the file name extension, and you must enclose the file name in quotation marks (").
Remarks
(MSDN)
---------
AFShin