カスタムjqueryダイアログを使用できるようにしたい、または少なくともAjax.Beginform関数でAjaxOptions.Confirmプロパティを使用するときにボタンのテキストをOK/キャンセルから別のものに変更できるようにしたい. このような:
<div>
@using (Ajax.BeginForm("Function", "Controller", new { id = theId }, new AjaxOptions
{
HttpMethod = "POST",
UpdateTargetId = "theForm",
InsertionMode = InsertionMode.Replace,
LoadingElementId = "iconGif",
OnBegin = "OnBegin",
OnFailure = "OnFailure",
OnSuccess = "OnSuccess",
Confirm = "Are you sure?" //TODO: Confirm with different dialog?
}, new { id = "feedback-form" }))
{
//Some stuff
<button onclick="derp()">Submit</button>
}
</div>
AjaxOptions.Confirm プロパティを介して Ajax.Beginform でこれを達成する方法はありますか?