title: URL Encode string for Href ASP.NET MVC / Razor
body: <p>I'm trying to build an Href using Razor
  The string is going to end up looking like this:</p>
  
  <p><a href="https://www.notmysite/controller/action?order_ID=xxxxxxx&amp;hashComparator=iFxp3%2BszAMaEB%2FnHCtRr9Ulhv0DumtyDumCik4gKypJqi0BdOGXXsr9QDkfefAsLaR1Xy%2BrX9VcuzP1pF2k6dL%2F92UxphzTKqNAZP2SSZGWtvyO5az%2F9JvDY%2Bsq5TBQo7%2FYAAMIU4QxiSX1SBKk8SUNECW3ZmKM%3D">https://www.notmysite/controller/action?order_ID=xxxxxxx&amp;hashComparator=iFxp3%2BszAMaEB%2FnHCtRr9Ulhv0DumtyDumCik4gKypJqi0BdOGXXsr9QDkfefAsLaR1Xy%2BrX9VcuzP1pF2k6dL%2F92UxphzTKqNAZP2SSZGWtvyO5az%2F9JvDY%2Bsq5TBQo7%2FYAAMIU4QxiSX1SBKk8SUNECW3ZmKM%3D</a></p>
  
  <p>In my model I have the order id and the hash string
  As the route is not a part of my site I don't believe I can use the default methods like @Url.Action
  and therefore can't use protocol: Request.Url.Scheme
  like I've used elsewhere.</p>
  
  <p>So at present I'm trying to figure out how to create this using string functions
  I've tried
  Url.Encode
  Url.EscapeDataString
  Html.Encode
  but am getting no where fast:</p>
  
  <pre><code>&lt;a href="@Uri.EscapeDataString("https://www.notmysite.co.uk/controller/action?order_ID=" + Model.bookingNumber + "&amp;hashComparator=" + Model.hashCode)"&gt;Click Here to be transferred&lt;/a&gt;
  </code></pre>
  
  <p>The output text always has plusses and equals in them and doesn't work.
  Which combination do I need?!</p>