title: In c# webforms, Get current path with port dosen't return the port
body: <p>I work in <code>localhost:5164</code> and I use this function to get current path, </p>
  
  <pre class="lang-cs prettyprint-override"><code>    Request.Url.AbsoluteUri.ToString()
  </code></pre>
  
  <p>and the result is correct, absolute path width port. For example: </p>
  
  <pre><code>http://localhost:5164/path/page1.aspx
  </code></pre>
  
  <p>But in a domain this function don't return path with port, (444 is the use from client browser)</p>
  
  <pre><code>http://sub.domain.com:444/path/page1.aspx
  </code></pre>
  
  <p>and the result is:</p>
  
  <pre><code>http://sub.domain.com/path/page1.aspx
  </code></pre>
  
  <p>I use other functions, but always the result isn't correct:</p>
  
  <pre><code>Request.Url.ToString()
  Request.Url.OriginalString.ToString()
  </code></pre>