I'm new to working on MVC2 asp.net projects.
I was wondering, is it possible to have an action link like this:
<%: Html.ActionLink("[Add To Cart]", "../StoreCart/AddToCart", new { id = Model.id })%>
Note the ../StoreCart.
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):
Bad (404): http://localhost:8231/StoreScreen/StoreCart/AddToCart?id=9
Desired: http://localhost:8231/StoreCart/AddToCart?id=9
Thanks!
PS: Why can't you just do a php like thing and write a custom <a href="<%: index + "/StoreCart/AddToCart?id=" + id %>" > add to cart </a> :)