this is my button:
@Html.ActionLink("Deletar", "Deletar", new { id = item.ID })
I tried to make a confirm question with Ajax like this
@using (Ajax.BeginForm(
"AjaxAction",
new AjaxOptions {OnBegin ="Deletar",Confirm="Você realmente deseja isso?" }))
{ @Html.ActionLink("Deletar", "Deletar", new { id = item.ID },new { id = "Deletar" }) }
it does not work? what can i do?
With standard link:
or if you want to use an AJAX link:
or an AJAX form: