Html.Action リンクを使用する必要があります
@Html.ActionLink("Save", "NameOfAction", "NameOfController")
ここにajaxリンクがあります
Ajax.ActionLink(
"Save",
"NameOfAction",
"NameOfController",
new { id = "AnyIdIfNeeded" },
new AjaxOptions
{
OnFailure = "JavascriptThatHandlesFailed",
HttpMethod = "GET",
UpdateTargetId = "SomeDivIdToUpdate",
LoadingElementId = "IdOfDivThatShowsLoading",
OnSuccess = "JavascriptMethodThatHandlesSuccess"
}
).ToHtmlString());
シンプルなフォーム
using (Html.BeginForm("ManageRoles", "ManageRoles", FormMethod.POST, new { id = "SearchForm" }))
{
<a href="javascript:void(0);" onclick="document.getElementById('SearchForm').submit();">Save</a>
}