我正在开发一个asp.net mvc-4 web应用程序,我正在使用Ajax.ActionLink进行删除操作:-
@Ajax.ActionLink("Delete","Delete", "Server",
new { id = item.ID },
new AjaxOptions
{ Confirm = "Are You sure You want to delete ?",
HttpMethod = "Post",
OnSuccess = "deletionconfirmation",
OnFailure = "deletionerror"
})现在我试着实现以下目标,就是用户点击确定后的第一条确认消息,显示另一条确认消息。要确保用户想要删除记录...so,这是可能的吗?
发布于 2016-06-23 13:44:20
使用OnBegin方法的AjaxOptions OnBegin=“返回函数名”,然后在函数名方法中返回false将防止其删除。
https://stackoverflow.com/questions/37993317
复制相似问题