1, need to reference a JS file jquery.unobtrusive-ajax.js "MVC4 Default exists Scripts folder" reference to the master page
_layout.cshtml, and be sure to place it after the jquery reference file
2, you need to add a distribution view to the specified directory, the distribution view is used to display the local refresh
3, the controller needs to add a point to the distribution view of the action, return must call Partialview point to the distribution view "return Partialview" ("_ajax", model ...); ": _ajax is the view file name that points to the distribution view.
4,<div id= "ajax_id" >
@Ajax. ActionLink ("Click here for local refresh", "Brush", "Test", New ajaxoptions
{
Updatetargetid = "ajax_id",//This ID is identical to the ID of the outer Div, the content of the local refresh will be displayed in this div
Insertionmode = Insertionmode.replace,
HttpMethod = "GET"
})
</div>
Ajax.actionlink Auxiliary method for local refresh