I'm trying to implement a simple ActionLink
that will delete records using ASP.NET MVC. This is what I have so far:
<%= Html.ActionLink("Delete",
"Delete",
new { id = item.storyId,
onclick = "return confirm('Are you sure?');"
})%>
However, it doesn't show the confirm box. Clearly I'm missing something or I have incorrectly built the link. Can anyone help?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…