我有以下两项,一项是只读的:-
@Html.TextBoxFor(model => model.Technology.Tag, new
{ @readonly = "readonly" })
而另一个被禁用: -
@Html.DropDownListFor(model => model.Customer.NAME, ((IEnumerable<TMS.Models.AccountDefinition>)ViewBag.Customers).Select(option => new SelectListItem
{
Text = (option == null ? "None" : option.ORG_NAME),
Value = option.ORG_NAME.ToString(),
Selected = (Model != null) && (Model.Customer != null) & (option.ORG_NAME == Model.Customer.NAME)
}), "Choose...", new { disabled = "disabled" })
那么asp.net mvc模型绑定器会绑定这两个项目吗?,或者它会忽略任何只读和任何禁用的字段?