Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp include statement

Status
Not open for further replies.

krappleby025

Programmer
Sep 6, 2001
347
NL
Hi all,

i need to include a file from another server onto my asp website.. what is the include statemtn, Normally i only use

<!--#include file

but this will not work over another network.. i need the asp command to connect to the page

any help is appreaciated.. and a star is pending
 
Try the URL

Code:
<!-- #include file="[URL unfurl="true"]http://newServer.newFile.inc"[/URL] -->

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook

zen.gif

 
I did find it...

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook

zen.gif

 
But it didn't work when I said
Code:
<!-- #include FILE="[URL unfurl="true"]http://www.kra-computers.com/test_sites/linkadmin/showlinks.asp"[/URL] -->

So I'm not sure if you can do this...

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook

zen.gif

 
You can do this..sort of.

If you share out the directory on the other server you should be able to do this...(i think)
<!-- #INCLUDE File="\\MyServer\something\FileName.asp" -->

The funk here is that the remote web server will try to process the asp if you use a URL...You can change the extension of the filename to something else (inc) but then if someone types that into their address bar they are looking right at your code.
 
well you can also use include VIRTUAL for things on a relative or internet path, and FILE for things on a physical path ( including netshares )

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top