Does anyone know if you can include files from another server/domain?
ie: <!-- #include file="http://www.someotherdomain.com/file.inc" -->
Thank you
Yes, you have to use XMLHTTP
Something like this..
<%
Response.Buffer = True
Dim objXMLHTTP, xml
' Create an xmlhttp object:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
' Opens the connection to the remote server.
xml.Open "GET", "http://pathToIncludeOnDifferentserver", False
' Actually Sends the request and returns the data:
xml.Send
'Display the HTML
Response.Write xml.responseText
Set xml = Nothing
%>