我有以下表格:
@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);
};
谢谢。