내가 가지고있는 내 asp.net MVC 웹 응용 프로그램 내에서 다음 -만드는 방법에 @ Html.EditorFor 장애인
<div><span class="f">Data Center Name</span> @Html.EditorFor(model => model.Switch.TMSRack.DataCenter.Name, new { disabled = "disabled" })</div>
하지만 필드가 비활성화되지 않습니다 ,, 할 수있는 사람 adivce하세요? THanks
을 이후 '@ Html.EditorFor (model => model.Property, new {htmlAttributes = new {@ disabled = "disabled"}})' –
당신이 ASP 코어를 사용한다면, 여기에 해결책을 설명했다 : https : // stackoverflow. co.kr/a/44639822/6339469 – HamedH