0
동일한 문제와 관련된 여러 게시물을 읽었지만 해결책을 찾지 못하는 것 같습니다. 나는 폼 나는 버튼양식 게시시 null로 반환 된 모델 값
<button class="btn grey" type="button" id="btnSave" name="btnSave">Save</button>
몇 가지 확인을하고 다음과 양식을 제출합니다 일부 jQuery 코드를 가지고
@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.
}
을 지정 MVC 4 응용 프로그램을
$(formId).submit();
컨트롤러에 중단 점이 있으며 전달 된 모델 내의 모든 값이 null입니다. 왜 이런 일이 일어날까요?