#include

  • Thread starter Christopher Brandsdal
  • Start date
C

Christopher Brandsdal

If I want to include a file to my webpage that is not placed in the same
folder asd the application, but in another folder on the same disk...

I found out that this is not going to work:
<!--#include virtual="D:/binaer.no/nova/test.asp"-->

Is there any other way to include from another domain account on the same
server?

There is going to be several applications that includes the same file, so
the trix ../../../ will not do it for me...


Christopher Brandsdal
 
A

Aaron [SQL Server MVP]

(a) use file instead of virtual
(b) this is not unix, use backslashes for local file references

<!--#include file="D:\binear.no\nova\test.asp"-->
 
C

Christopher Brandsdal

Thanks, but it still does not work....

The Include tag looks like this:
<!--#include file="D:\binaer.no\Nova\test.asp"-->

but I still get this error:
---------------------------------------------------------------------------
-----
Active Server Pages error 'ASP 0126'

Include file not found

/client/test.asp, line 11

The include file 'D:\binaer.no\Nova\test.asp' was not found.

----------------------------------------------------------------------------
-----

I have used my explorer to find the path, ant it is of caurse right. Tripple
checked ;) So theres got to be something else strange that I can not
understand..



Thank you so much for helping me Aaron! It is a GREAT help for me!
 
A

Aaron [SQL Server MVP]

Well, I don't know, since I can't see your machines, I can only take your
word that IUSR has access. I don't know if anyone will be able to offer you
any more than that.
 
C

Christopher Brandsdal

hehe ok thanks!

But my question was in the first place: is it possible to include for
instance D:\binaer.no\Nova\test.asp
And your answer is 'yes':)
So I think I'll just keep trying till I get it to work ;)
I'll let you know if I find the solution!
 
D

dave

Rename the folder name
binaer.no
as its contains "." might be creating problem..
and try aaron's suggessted syntax
cheers
dave
 
C

Christopher Brandsdal

Thanks dave! I'll try ;)
dave said:
Rename the folder name
binaer.no
as its contains "." might be creating problem..
and try aaron's suggessted syntax
cheers
dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top