simple way is to use the ns_adp_argv's...

index.adp:
...
ns_adp_include foo.adp "index"
...
processing.adp:
...
ns_adp_include foo.adp "processing"
...

foo.adp
...
set caller [ns_adp_argv 0]
switch -exact $caller {
    index { # do something }
    processing { # do something else }
    default { # page might have been called by browser or other file }
}

let me know if that works for ya...

Mike

In a message dated 1/28/04 12:18:07 PM, [EMAIL PROTECTED] writes:


Hello,

I think I asked this wrong.

I am not concerned w/� processing foo.adp 2x. I need to do that.
What I am looking for is for foo.adp to know that index.adp or processing.adp included it, so I can alter the code in foo.adp based on what page includes it.

thx
divney






Mike McKinney
Engineer | America Online, Inc.
[EMAIL PROTECTED] | 703.265.2696
2">

Reply via email to