Calling script name from codebehind

  • Thread starter Thread starter Stefan Barlow
  • Start date Start date
S

Stefan Barlow

I have a mechanism that performs a server transfer to another page that uses
the same codebehind class if an alternate page URL exists in the application
variables.

My problem is there is an endless loop because I cannot find the REAL script
name calling the codebehind. Request.ServerVariables["script_name"] returns
the original script name since it is a server transfer. Redirect is not an
option, as I want this to be seemless.

How can I find out the name of the script that is calling the Page_Load
function of the codebehind class?

Thanks!
Stefan
 
Back
Top