0

How am i supposed to know from which webpage the user came into my website. Is there any way of reading such info with asp.NET?

I would like to store that info (referral link) into a cookie for later processing.

OrElse
  • 9,709
  • 39
  • 140
  • 253

3 Answers3

3

http://en.wikipedia.org/wiki/HTTP_referrer and http://msdn.microsoft.com/en-us/library/system.web.httprequest.urlreferrer.aspx. Bear in mind it is not completely foolproof.

RichardOD
  • 28,883
  • 9
  • 61
  • 81
0

You can use HttpContext.Current.Request.UrlReferrer.

Dan Diplo
  • 25,076
  • 4
  • 67
  • 89
0

Request.UrlReferrer

David Glenn
  • 24,412
  • 19
  • 74
  • 94