Opener Page ID

  • Thread starter Thread starter Paps
  • Start date Start date
P

Paps

which is the best method to know if a aspx page was called from within
another aspx page of my project and not called directly from the
browser-address ?

thanks

Paps
 
Hi Paps,

Please try Request.ServerVariables("HTTP_REFERER"). This should tell you
the file name of the previous document which sent the user to the current
document. A blank value can occur for other reasons, but it's an indicator
that there was no previous document.

Please let me know if this works for you.

Thank you, Mike Moore
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.


--------------------
 
Back
Top