Server discovery. Classic ASP transfer

In classic ASP, how do you find out that the page has gained control through Server.Transfer ()?

I cannot compare the url to the current ASP file name because the code is stored in a library (bundled).

+1


a source to share


2 answers


You can check if the Request.ServerVariables("URL")

current page matches . For Server.Transfer, the URL is still the original page that was requested.



In response to your edit: the page must provide the current page name for the code in the library, otherwise there is nothing in the library to compare the requested URL.

0


a source


There is no way to achieve this without some help from the page calling Transfer or the page to which the transfer is being made. The latter would probably be the best place to do this, and tweak the library code to accept transfer information from it (if any).



0


a source







All Articles