Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <li>
- <%= Html.ActionLink("Modify Villa", "Modify", "Villa", new { @id = "1" })%></li>
- public ActionResult Modify(string ID)
- {
- ViewData["Title"] =ID;
- return View();
- }
- routes.MapRoute(
- "Default", // Route name
- "{controller}/{action}/{id}", // URL with parameters
- new { controller = "Home", action = "Index", id = "" } // Parameter defaults
- );
- <%=Html.ActionLink("Modify Villa", "Modify", new {id = "1"})%>
- <%=Html.ActionLink("Modify Villa", "Modify", "Villa", new {id = "1"}, null)%>
- new { id = "1" }
Add Comment
Please, Sign In to add comment