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.


--------------------
 

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

Back
Top