Include virtual

J

Jim Andersen

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
 
S

Stuart Palmer

<!--#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
 
J

Jim Andersen

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
 
M

mark rees

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

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,284
Latest member
NicholeDum

Latest Threads

Top