title: Getting only the Referrer page not complete address in .NET
body: <p>I am using C#. Below is my sample code.</p>
  
  <pre><code>private void Page_Load(object sender, System.EventArgs e)
  {
      string str = Request.UrlReferrer.ToString();   
      Label1.Text = str;  
  }
  </code></pre>
  
  <p>The result in <strong>Label1.Text</strong> is <strong><a href="http://localhost:82/data/WebForm1.aspx" rel="nofollow noreferrer">http://localhost:82/data/WebForm1.aspx</a></strong>.</p>
  
  <p>Now I want the result "<strong>WebForm1.aspx</strong>" in <strong>Label1.Text</strong></p>
  
  <p>can you please help me?</p>
  
  <p>Thanks.</p>