ajax.actionlink
オブジェクトを削除するためにa を呼び出す次のものがDelete action method
あります:-
@if (!item.IsAlreadyAssigned(item.LabTestID))
{
string i = "Are You sure You want to delete (" + @item.Description.ToString() + ") ?";
@Ajax.ActionLink("Delete",
"Delete", "LabTest",
new { id = item.LabTestID },
new AjaxOptions
{ Confirm = i,
HttpMethod = "Post",
OnSuccess = "deletionconfirmation",
OnFailure = "deletionerror"
})
}
しかし、攻撃者が誤った削除要求を送信できないようにするため@Html.AntiForgeryToken()
に、削除呼び出しに含める方法はありますか?Ajax.actionlink
ブラジル