Include virtual

Jim Andersen

Usenet Archive
Joined
Aug 2, 2002
Messages
57
Reaction score
0
Hejsa,
Har "arvet" et website jeg skal have "oversat" til .NET

I øjeblikket er det "almindelige" .asp sider, som jeg ikke har prøvet før.

I c:\test\kims\www\eval\default.asp er følgende linier:
<!--#include file="Connections/Conneval.asp" -->
..
..
..
<!--#include virtual="eval\uTop.asp" -->
..
..

Den kommer så med;
Inkluderingsfilen 'eval\uTop.asp' blev ikke fundet.
/evaluator/eval/Default.asp, line 49

Der findes en fil der hedder
c:\test\kims\www\eval\uTop.asp
Har jeg oprettet min Virtuelle mappe forkert i IIS ?

mvh
/jim
 

Stuart Palmer

Usenet Archive
Joined
Nov 18, 2002
Messages
433
Reaction score
0
<!--#include virtual="\eval\uTop.asp" -->

I think is your answer.

As it's virtual you need to put in \ (i.e from the root of the site).

Stu
 

Jim Andersen

Usenet Archive
Joined
Aug 2, 2002
Messages
57
Reaction score
0
Oh Damn, did I write it in Danish ? :)

I'll just translate.....

I have "inherited" a (to my knowledge) working application and am going to convert it to .NET, as I have never written .asp applications.

But you are saying that this could never have worked, without the "\" in front ?

The examples I've seen suggests you are right....

/jim
 

mark rees

Usenet Archive
Joined
Dec 3, 2003
Messages
3
Reaction score
0
Hello

Just to clear this up

#include file means you put in a relative path

#include virtual requires the path from the root of the application

e.g.
using

www.site.com/area/file.asp

To include a file which is in

www.site.com/area/includes/

either
<!--#include file="includes/incfile.asp"-->
or
<!--#include virtual="/area/includes/incfile.asp"-->
 

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

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,245
Members
248,133
Latest member
DujonT

Latest Threads

Top