同じ問題に関連するさまざまな投稿を読みましたが、解決策が見つからないようです。フォームを指定する MVC 4 アプリケーションがあります
@using (Html.BeginForm("SaveFirstAmountPayable", "Policy", FormMethod.Post,
new Dictionary<string, object> { { "name", "frmPolicyFirstAmountPayable" },
{ "id", "frmPolicyFirstAmountPayable" } }))
{
@Html.Kendo().HtmlHelper.TextBoxFor(m =>
m.FirstAmountPayable.FirstAmountPayableDescription,
new Dictionary<string, object> { { "id", "txtDescription" }})
// Some other inputs bounded to the model.
}
ボタンがあります
<button class="btn grey" type="button" id="btnSave" name="btnSave">Save</button>
いくつかの検証を行い、フォームを送信するいくつかの JQuery コード
$(formId).submit();
コントローラーにブレークポイントがあり、渡されるモデル内のすべての値が null です。なぜこれが起こるのでしょうか?