Html.ActionLink showing query url instead of pretty url.
Posted
by Quintin Par
on Stack Overflow
See other posts from Stack Overflow
or by Quintin Par
Published on 2010-04-12T13:31:00Z
Indexed on
2010/04/12
13:33 UTC
Read the original article
Hit count: 354
The Html.ActionLink
<li> ${Html.ActionLink<HomeController>(c => c.Edit(ViewData.Model.Id, ViewData.Model.Title), "Edit")} </li>
When created as html shows the URL to be Edit/5006?title=One
. How do I change this to a pretty URL like Edit/5006/One
?
My Edit Action method is
public ActionResult Edit(int id, string title)
© Stack Overflow or respective owner