【发布时间】:2012-11-06 07:40:28
【问题描述】:
我需要在 BeginForm html 中发送带有值的参数。
例子:
@ using (Html.BeginForm ("Create", "IncomeDeclaration", new {declarationAmount = document.getElementById ("element"). value}))
这个值我无法从模型中得到,因为它在模型中找不到。 我已经尝试了几种方法,但没有任何效果。如果您可以更改 ViewBag 的内容,那就太好了。
感谢您的支持。
【问题讨论】:
标签: asp.net-mvc forms parameters