Forum Moderators: open

Message Too Old, No Replies

#Include File from another webserver

Is this possible?

         

IanTurner

11:58 am on Jun 28, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Is it possible to use #include with a web address as the location for the include file?

And if so how?

Easy_Coder

3:35 pm on Jun 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As far as I know you cannot do this:

<!--#INCLUDE FILE="http://www.somesite.com/include.asp"-->

Are you looking to execute server side code? If that's the case I'd recommend looking into a web service between the 2 sites.

IanTurner

4:04 pm on Jun 28, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



That is what I was looking to do, I might have a way round it which I will look into otherwise a web service may be the route we need to take.

Many thanks.

Easy_Coder

5:44 pm on Jun 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can look into remote object calls too.

ziggystardust

6:12 pm on Jun 28, 2004 (gmt 0)

10+ Year Member



Look into the WebRequest class if you're using asp.net or xmlhttp if you're using asp. Both let you post to remote websites and receive the response (ie. the site) as a string.

4Guys is a nice starting point:
[4guysfromrolla.com...]

Good luck
//ZS