【发布时间】:2012-07-05 11:26:05
【问题描述】:
我有一个特定的 ajax 表单,提交时我想在该 ajax 表单之外包含另一个表单。让我给你举个例子:
@using (Ajax.BeginForm("PayWithBankTransfer", "Payment", new { salesLineId = salesLine.SalesLineID }, new AjaxOptions
{
HttpMethod = "POST",
UpdateTargetId = "bankForm",
LoadingElementId = "spinnerBank"
}, new { id = "feedback-form" }))
{
//some stuff
<button type="submit">Reserve</button>
}
我想在 ajax 表单提交中包含表单之外的另一个标签
<div id="theOtherStuff">
//otherStuff
</div>
我怎样才能连同 ajax 表单一起提交其他东西?
【问题讨论】:
标签: ajax asp.net-mvc-3 razor