In Classic ASP, how do you detect on that the page got control via a Server.Transfer()?
I cannot compare the URL vs the current ASP filename because the code is stored in a library (included).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can check if
Request.ServerVariables("URL")matches the current page. For a Server.Transfer the URL is still the original page that was requested.In response to your edit: The page needs to provide the current page name to the code in the library, otherwise the library has nothing that it can compare the requested URL to.