私のフォームにはajax.actionlinkがあります:
<% using (Html.BeginForm("UpdateRecordingDetails", "Recording", FormMethod.Post, new { id = "frmRecordingEdit" }))
{%>
<%= Ajax.ActionLink("Event Notifications", "procesCallrecording", new { Id = ViewData["RecordingIDsEdit"] }, new AjaxOptions { OnSuccess = "alert('success message');" })%>
<%
}
%>
コントローラのアクションは次のようになります。
public JsonResult procesCallrecording(int Id = 0 )
{
return Json("success", JsonRequestBehavior.AllowGet);
}