Hi,
All the code from the included file is "pasted" into the calling file. To
find the path of the calling file, you can use Server.Mappath() however,
that's largely irrelevant for the web, since you want the virtual path. You
can get this using
Request.ServerVariables("Script_Name")
http://msdn.microsoft.com/library/de...om_reqocsv.asp
Cheers
Ken
"Christiaan Nijdam" <ac*************@yahoo.com> wrote in message
news:83**************************@posting.google.c om...
: Hi,
:
:
: Is there a way to determine the filepath of an included file?:
:
: First file contains:
: <!--#include file="WysiwygEd/Inc_WysiwygEd.asp" -->
: <%SomeSub%>
:
: Second file Inc_WysiwygEd.asp contains:
: <%
: sub SomeSub
: 'I need to know the URL of the included file here to determine the
: location of resources like images
: end sub
: %>
:
:
: Thanks,
: Christiaan