[英]how to make dropdownlistfor readonly razor c# asp.net
剃刀代码:我尝试将下拉列表设置为只读,但在应用程序中工作时好像没有看到此功能
@Html.DropDownListFor(m => m.Model1[nr_rows].Wynagrodzenie, new SelectList(Enum.GetValues(typeof(Wynagrodzenie))), " ", new { @class = "selectboxlist", @readonly =true })
Add @disabled = "disabled"
inside new {..} like this..像这样在 new {..} 中添加@disabled = "disabled"
..
new { @class = "selectboxlist", @readonly =true, @disabled ="disabled" }
Thanks谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.