Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting Include File Referrer

Status
Not open for further replies.

ToddWW

Programmer
Mar 25, 2001
1,073
US
This is for error reporting. The ASP error object returns the include file as the page that is generating the error. I need to know the page that called the include file since this particular include file is called from hundreds of pages and has functions that parameters are passed to. So sometimes it generates errors and other times not.

Thanks.

ToddWW
 
Could you use something like the URL of the page that was called? I know it wouldn't be 100% helpful if you have nested includes, but it would give you a view from the other side/beginning...
Try Request.ServerVariables("URL") or Request.ServerVariables("SCRIPT_NAME")
-T

[sub]01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111[/sub]
Need an expensive ASP developer in the North Carolina area? Feel free to let me know.


 
Thanks. I found a property in the error object that will tell me the calling page.

Thank you very much.

ToddWW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top