469,963 Members | 2,138 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

#include virtual

Hi,

I have noticed that in an aspx page

<!--#include virtual="Home.htm"--> acts the same as <!--#include
File="Home.htm"-->

when I am NOT in the root diectory of the site (I am aware that they will
reference the same file if in the root dir)

for example I have a directory on my site called "Admin" immediatly
subordinate to the root.

using inside default.aspx in "Admin" have the line
<!--#include virtual="Admin/AdminHome.htm"-->
This gives me the error
Could not find a part of the path
"c:\inetpub\wwwroot\Emailer1\Admin\Admin\AdminHome .htm". (notice the
duplicate "Admin" dir )

However the following works

<!--#include virtual="AdminHome.htm"--> and feel it should not becaues in
classic asp virtual references the root of the website.

cheers

Alex.
Nov 17 '05 #1
0 2715

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Alex | last post: by
2 posts views Thread by Kraai | last post: by
6 posts views Thread by Jordi | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.