title: How to include an MVC Razor variable within Url.Content?
body: <p>Using MVC 3 Razor, how can I specify a variable within a call to <code>@Url.Content()</code>.</p>
  
  <p>Example:</p>
  
  <pre><code>@{
  var myVar = Request.QueryString["foo"];
  }
  
  &lt;a href="@Url.Content("~/bar?@myvar")"&gt;click here&lt;/a&gt;
  </code></pre>