繁体   English   中英

如何在 ASP.NET MVC 的视图页面上隐藏与 model 显示名称绑定的 label

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM