0
我需要使用BeginForm html中的值发送参数。将多个html参数传递给BeginForm
例子:
@ using (Html.BeginForm ("Create", "IncomeDeclaration", new {declarationAmount = document.getElementById ("element"). value}))
这个数值我无法从模型得到的,因为它没有在模型中找到。 我试过几种方法,没有任何工作。如果你可以改变ViewBag的内容,那会很棒。
我很感谢您的支持。