How do I find the previously visited website with ASP.NET?
In other words, what is the alternative for
getenv('HTTP_REFERER')
of PHP in asp.net?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
http://msdn.microsoft.com/en-us/library/system.web.httprequest.urlreferrer.aspx
It would be Request.UrlReferrer
However you need to check for null because if the request came from say, a company network, which stripped off the referrer header, you wont receive this information.