是否可以通过以下方式实现我自己的确认对话?
Ajax.BeginForm(new AjaxOptions { Confirm ="" })
谢谢 :)
是否可以通过以下方式实现我自己的确认对话?
Ajax.BeginForm(new AjaxOptions { Confirm ="" })
谢谢 :)
如果您没有找到答案,请检查以下问题中实现的 (OnBegin) 函数: Ajax.BeginForm Confirmation Dialog onBeginForm() before triggering OnSuccessForm()
Ajax BeginForm sends data to Controller. You need to use Ajax ActionLink İn order to show some confirm message try below :
@Ajax.ActionLink(
"Revoke Access to all Galleries Immediately",
"ViewInvites",
"Gallery",
new AjaxOptions {
Confirm = "Are you sure you want to revoke access to all galleries? This cannot be undone.",
HttpMethod = "Post"
}
)