title: ASP.NET: ActionLink return relative url
body: <p>I'm new to working on MVC2 asp.net projects.</p>
  
  <p>I was wondering, is it possible to have an action link like this:</p>
  
  <pre><code>&lt;%: Html.ActionLink("[Add To Cart]", "../StoreCart/AddToCart", new { id = Model.id })%&gt;
  </code></pre>
  
  <p>Note the <code>../StoreCart</code>. </p>
  
  <p>Here's a returned URL example (I am currently in StoreScreen when I see the ActionLink, but I would like to get out, "one level up" so to speak):</p>
  
  <p>Bad (404): <code>http://localhost:8231/StoreScreen/StoreCart/AddToCart?id=9</code></p>
  
  <p>Desired: <code>http://localhost:8231/StoreCart/AddToCart?id=9</code></p>
  
  <p>Thanks!</p>
  
  <p>PS: Why can't you just do a php like thing and write a custom <code>&lt;a href="&lt;%: index + "/StoreCart/AddToCart?id=" + id %&gt;" &gt; add to cart &lt;/a&gt;</code> :)</p>