User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 391,944 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,878 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 4655 | Replies: 2
Reply
Join Date: Jan 2005
Posts: 1
Reputation: vicury is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vicury vicury is offline Offline
Newbie Poster

Help Include a file from another website

  #1  
Jan 14th, 2005
Please help! Can't seem to be able to figure out the syntax
I need to include a file that is located on the entirely deferent website.
Here's what I need to do, which, obviously doesn't work:

<!--#include virtual="http://www.another-site.com/xxx.asp"-->
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2005
Location: France
Posts: 72
Reputation: HawkeVIPER is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
HawkeVIPER's Avatar
HawkeVIPER HawkeVIPER is offline Offline
Junior Poster in Training

Re: Include a file from another website

  #2  
Jan 14th, 2005
Put quite simply, you can't that way. The include directive is based off the Document root.

Why don't you just host the page on the same site as the one you want the include on?

If you can't do that, you'll need to employ page caching.

http://www.google.com/search?q=%2Bas...e=off&c2coff=1
--HV

values of β will give rise to dom!


ex·pert (ĕkspûrt)
n.

1. An ĕks is a hasbeen, a spûrt is a drip under pressure
Reply With Quote  
Join Date: Jan 2005
Location: Sheffield, UK
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: Include a file from another website

  #3  
Jan 19th, 2005
ASP cannot 'include' page outside its server.

You can use the basic html script like frame or iframe. iframe is better which the page only appear on the location you want it to be, within your defined height and width.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 8:48 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC