In a message dated 1/28/2004 11:14:11 AM Eastern Standard Time, [EMAIL PROTECTED] writes:
Hello,

Lets say i have a page called index.adp and this includes a file called foo.adp
But I also have a processing.adp page that can also include foo.adp
Is there any way in foo.adp to know what page included it ?
ie either the processing.adp or the index.adp page ?

Thanks !
divney
A simple way would be:
 
In processing.adp, you could do:
 
<%
global _processed
 
if {[info exists _processed]} {
    ns_adp_return
}
 
set _processed 1
 
# do the processing.
%>
 
 
That way processing.adp will only run once.
 
-- michael
 
 
_____________________
michael richman

princ software engineer
aol technologies
610.668.6569

-- AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.

Reply via email to