title: How do I identify the referrer page in ASP.NET?
body: <p>In VS2003, I am trying to find out the particular page where the request is coming from. I want to identify the exact aspx page name.</p>
  
  <p>Is there a way to only get the page name or some how strip the page name?</p>
  
  <p>Currently I am using the following instruction...</p>
  
  <pre><code>string referencepage = HttpContext.Current.Request.UrlReferrer.ToString();
  </code></pre>
  
  <p>and I get the following result...</p>
  
  <p>"<a href="http://localhost/MyPage123.aspx?myval1=3333&amp;myval2=4444" rel="nofollow noreferrer">http://localhost/MyPage123.aspx?myval1=3333&amp;myval2=4444</a>;</p>
  
  <p>I want to get the result back with out any query string parameters and be able to identify the page MyPage123.aspx accurately...</p>
  
  <p>How do I do that??</p>