p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 3.5 Professionals (http://p2p.wrox.com/forumdisplay.php?f=352)
-   -   how can I know from where someone came to mywebsite? (http://p2p.wrox.com/showthread.php?t=82706)

barakros February 21st, 2011 12:22 PM

how can I know from where someone came to mywebsite?
Hi all experts

I wanted to know if there is a way to know the last website the user was in before got into mine.

lets say he came from google into my site to the home page,
and then into my website register page. I want to be able to know in the register page that he came from google.

Thanks in advanced


Imar February 21st, 2011 12:51 PM

Hi there,

You can use




for this. Just make sure you always check for null or empty string values as the value isn't guaranteed to be there. You only get a value when you click a link from one page to another, not when you enter an address in the address bar of the browser directly. Also, security software may strip the referrer.

Hope this helps,


All times are GMT -4. The time now is 10:46 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.