How to get the url where I came from?

G

Guest

Hi I have added a image button on a web page that is used for navigating back
to the page I come from. I'm "jumping" between pages using Server.Transfer.
Where can I find the address for the page I was coming from?

Thanks in advance!
/Henke
 
J

Juan T. Llibre

You can, normally, get the referring page by using either
Request.ServerVariables("HTTP_REFERER") or Requerst.UrlReferrer

BUT, if you use Server.Transfer you can't get the referring page.

If you absolutely need to get the referrer, use Response.Redirect instead.
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top