By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,711 Members | 2,158 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,711 IT Pros & Developers. It's quick & easy.

Calling script name from codebehind

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Never mind, Request.CurrentExecutionFilePath

"Stefan Barlow" <st****@NOSPAM.americomlp.com> wrote in message
news:zb******************@twister.austin.rr.com...
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

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.