By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,640 Members | 1,581 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,640 IT Pros & Developers. It's quick & easy.

Include file from other server

P: n/a
Is it possible to include a file from another server in html? I have
typed

<!-- #include file="http://Nlg-info/PESE/PESE.asp" --> is this the
correct code?

I cannot have the files together as we are developing in asp.net while
the intranet server does not have the framework loaded.

Many Thanks, Rick Anderson
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Rick,

What exactly do you mean by "include" in this context? Do you want to
execute the server-side code from this foreign page on your server or do you
want the client-side content of the foreign page to appear within a page of
your application?

Nicole
"Rick" <rj*****@yahoo.co.uk> wrote in message
news:36**************************@posting.google.c om...
Is it possible to include a file from another server in html? I have
typed

<!-- #include file="http://Nlg-info/PESE/PESE.asp" --> is this the
correct code?

I cannot have the files together as we are developing in asp.net while
the intranet server does not have the framework loaded.

Many Thanks, Rick Anderson

Nov 18 '05 #2

P: n/a
Nicole, Thanks for the reply.

I am trying to do the first of your two choices. I got the following
suggestion from another user:

-------START
What you're doing won't work.

You have to use the fully qualified share name to identify the
location of the server, not the http location. For example:

This doesn't work:
#include file="http://www.mysite.com/myinclude.asp"

This will work:
#include file="\\thesharename\myinclude.asp"

In this case the server needs to be visible to your computer.
------END

When I tried this I got the following error:
Active Server Pages error 'ASP 0130'
Invalid File attribute
/information/Search.asp, line 2
File attribute '\\pese\pese.asp' cannot start with forward slash or
back slash.

So not really sure what to do. Rick.


"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message news:<#r**************@TK2MSFTNGP12.phx.gbl>...
Rick,

What exactly do you mean by "include" in this context? Do you want to
execute the server-side code from this foreign page on your server or do you
want the client-side content of the foreign page to appear within a page of
your application?

Nicole
"Rick" <rj*****@yahoo.co.uk> wrote in message
news:36**************************@posting.google.c om...
Is it possible to include a file from another server in html? I have
typed

<!-- #include file="http://Nlg-info/PESE/PESE.asp" --> is this the
correct code?

I cannot have the files together as we are developing in asp.net while
the intranet server does not have the framework loaded.

Many Thanks, Rick Anderson

Nov 18 '05 #3

P: n/a
Rick,

Is there any reason you can't store a copy of the file locally on the server
that is hosting your ASP.NET application? It will be processed there
regardless of whether it's loaded from a local or a network source. If this
isn't feasible, have you at least tested it in this configuration to ensure
that the ASP file can actually be used within your ASP.NET page in this way?

HTH,
Nicole

"Rick" <rj*****@yahoo.co.uk> wrote in message
news:36**************************@posting.google.c om...
Nicole, Thanks for the reply.

I am trying to do the first of your two choices. I got the following
suggestion from another user:

-------START
What you're doing won't work.

You have to use the fully qualified share name to identify the
location of the server, not the http location. For example:

This doesn't work:
#include file="http://www.mysite.com/myinclude.asp"

This will work:
#include file="\\thesharename\myinclude.asp"

In this case the server needs to be visible to your computer.
------END

When I tried this I got the following error:
Active Server Pages error 'ASP 0130'
Invalid File attribute
/information/Search.asp, line 2
File attribute '\\pese\pese.asp' cannot start with forward slash or
back slash.

So not really sure what to do. Rick.


"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message
news:<#r**************@TK2MSFTNGP12.phx.gbl>...
Rick,

What exactly do you mean by "include" in this context? Do you want to
execute the server-side code from this foreign page on your server or do
you
want the client-side content of the foreign page to appear within a page
of
your application?

Nicole
"Rick" <rj*****@yahoo.co.uk> wrote in message
news:36**************************@posting.google.c om...
> Is it possible to include a file from another server in html? I have
> typed
>
> <!-- #include file="http://Nlg-info/PESE/PESE.asp" --> is this the
> correct code?
>
> I cannot have the files together as we are developing in asp.net while
> the intranet server does not have the framework loaded.
>
> Many Thanks, Rick Anderson

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.