Calling script name from codebehind

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top