3

以下との独自の確認ダイアログを実装することは可能ですか?

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

ありがとう :)

4

2 に答える 2

0

In case you did not find the answer, check the (OnBegin) function implemented in the following question: 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 に答える