1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Can you call an asp include from another site

Discussion in 'C#' started by mobilebay, Feb 4, 2008.

  1. #1
    Basically i have a top 10 posts i want to add to my site, my query is can I call the include from a different site on a different host and server? Or is it not possible?

    e.g.
    <!--#include file="http://www.themt.com/common.asp" -->
    <!--#include file="http://www.themt.com/functions/functions_date_time_format.asp" -->

    this is the error

    Active Server Pages error 'ASP 0126'

    Include file not found
    SEMrush
    /index.asp, line 2

    The include file 'http://www.themt.com/common.asp' was not found.

    :) ty in advance
     
    mobilebay, Feb 4, 2008 IP
    SEMrush
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,681
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    too long since i did classic ASP but try replacing "file" with "virtual"
     
    AstarothSolutions, Feb 5, 2008 IP
  3. urstop

    urstop Peon

    Messages:
    224
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No, you cannot include ASP files from a different server.
     
    urstop, Feb 5, 2008 IP
  4. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,681
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok, wasnt sure.... if your database allows remote connections then you could query it directly to produce the top 10 posts or alternatively set up some form of XML output either in the form of a web service or more likely, in the form of an RSS type feed which the 2nd site then consumes and displays
     
    AstarothSolutions, Feb 5, 2008 IP
  5. mobilebay

    mobilebay Active Member

    Messages:
    1,024
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    90
    #5
    Thanks guys, dohhhh

    oh well any other way of doing it?
     
    mobilebay, Feb 6, 2008 IP
  6. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,681
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #6
    As per my suggestion, either query the db directly if it allows remote connections or write a page that outputs an xml file on the original site which the second site then consumes... if you make the XML as RSS so other users/ sites can consume it and help to drive traffic
     
    AstarothSolutions, Feb 6, 2008 IP