我有以下表单:
@using (Ajax.BeginForm("DoComment", "Publication", new { id = Model.Publication.OID, parentId = Model.OID }, new AjaxOptions
{
OnSuccess = "publishCommentSuccess"
}))
{
//some code
}
如何将
parentId
传递给publishCommentSuccess
函数?function publishCommentSuccess (json) {
if (!json.Result)
showAuthBox();
else
alert(json.Message);
};
感谢您的选择。