3

是否可以通过以下方式实现我自己的确认对话?

Ajax.BeginForm(new AjaxOptions { Confirm ="" })

谢谢 :)

4

2 回答 2

0

如果您没有找到答案,请检查以下问题中实现的 (OnBegin) 函数: Ajax.BeginForm Confirmation Dialog onBeginForm() before triggering OnSuccessForm()

于 2015-07-05T10:55:20.673 回答
-1

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"
}
)
于 2013-09-21T08:18:03.887 回答