title: Get URL in HTML / cshtml
body: <p>I want to get the current URL into a string that I can use for e.g. share functionality later.</p>
  
  <pre><code>String strPathAndQuery = HttpContext.Current.Request.Url.PathAndQuery;
  </code></pre>
  
  <p>I get the error: </p>
  
  <blockquote>
    <p>The name <code>HttpContext</code> does not exist in the current context.</p>
  </blockquote>
  
  <p>Is there another way?</p>