
[英]ASP.NET MVC how to create a model which pulls in data from 2 tables, to display in 1 view
[英]How to hide label which is binding from model display name on view page in ASP.NET MVC
Model
[Display(Name = "Deferred Sentence:")]
public bool DeferredSentence { get; set; }
这是视图:
<div class="form-group col-md-2">
@Html.CheckBoxFor(model => model._DispositionModel.DeferredSentence, new { @id = "ChkDeferredSentence" })
</div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.