Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Source of request in asp.net/C#

Tags:

c#

asp.net

Basically, I need to know the answer to this question in asp.net/C#:
source of REQUEST
I would like one of my pages to know which page directed the user to this specific page. I've tried going through intellisense on a few different Page properties, but couldn't find it. Any help?

like image 821
Nick Rolando Avatar asked Feb 03 '11 18:02

Nick Rolando


1 Answers

Sounds like your looking for Request.UrlReferrer

Documentation: HttpRequest.UrlReferrer

The request can be attained off the page:

Page.Request

If a Page instance is not available, you can get it from the current context using:

HttpContext.Current.Request
like image 133
cweston Avatar answered Sep 21 '22 12:09

cweston