title: How to get the page URL if the page request is made from a different URL?
body: <p>I am working on a web application, I came to a situation that I need to know from which website the user came to my website.
  What I am looking for is: </p>
  <pre><code>&lt;a target=&quot;_blank&quot; href=&quot;http://localhost:18835/index.aspx&quot;&gt;To Web application&lt;/a&gt;
  </code></pre>
  <p>is on one website say StackOverflow and on that <code>index.aspx</code> page load I need to know that the request is coming from StackOverflow or any other website I need to know the URL where the page request is made.</p>
  <p>How can I do that?</p>
  <pre><code>string referencepage = HttpContext.Current.Request.UrlReferrer.AbsoluteUri;
  label1.Text = &quot;You Came from:-&quot; + referencepage;
  </code></pre>
  <p>this code will work when the request is made within the current URL, so what if the request is coming from outside ???</p>