I am in the process of creating a prototype project using MVC 3 and I have come across a situation which I can\'t seem to find an answer for and it seems like I might be app
Convert
From
@RenderBody()
To
From
@Html.ActionLink("Contact", "List", "Contact")
To
@Ajax.ActionLink("Contact", "List", "Contact", new AjaxOptions { UpdateTargetId = "adminmain" })
And in ContactController
List
action return PartialView()
instead of 'View()'.
Do not forget to include jquery.unobtrusive-ajax
in your view to make Ajax
work.
And before all read Roman's Answer