I do not see to get the identifier that I am sending in html.ActionLink in my controller, this is what I am trying to do
<li> <%= Html.ActionLink("Modify Villa", "Modify", "Villa", new { @id = "1" })%></li> public ActionResult Modify(string ID) { ViewData["Title"] =ID; return View(); }
What recommended the textbook that I followed, but it does not work, does it also fit? Length = 5 at the end of the URL!
Thanks in advance!
edit: here is the route I use, by default
routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = "" } // Parameter defaults );
It seems that someone lowered the two sentences below, but did not post their solution!
c # asp.net-mvc
Tablet Nov 25 '08 at 10:07 2008-11-25 10:07
source share