我有一个模型..Mvc模型绑定在视图中?
Models.Mm.Items.ItemEditModel like thiss..
在ItemEdit查看
@Html.TextBoxFor(m => m.RecordTypeId) --> this works bind model and take value RecordTypeId
@Html.Kendo().NumericTextBoxFor(m => m.RecordTypeId) --> this works
<input id="RecordTypeId" name="RecordTypeId" type="text" /> --> this not working this value is null
我使用autofac和剑道。
我不明白为什么HTML绑定不工作..
财产你的意思是它不回发,或它没有显示RecordTypeId'的'价值(因为你还没有设置属性'value = @ Model.RecordTypeId')? –