나는이 내가 시도했지만 작동하지 않았다 전부입니다 @HTML.TextAreaFor
@ Html.TextAreaFor에 기본 텍스트를 설정할 수 없습니까?
에 대한 기본 텍스트를 설정할 수 없습니다입니다, 항상 빈 텍스트 영역
@Html.TextAreaFor(m => m.EmployeeDescription, new { @Text = ViewBag.Model.EmployeeDescription })
@Html.TextAreaFor(m => m.EmployeeDescription, new { @text = ViewBag.Model.EmployeeDescription })
@Html.TextAreaFor(m => m.EmployeeDescription, new { @Value = ViewBag.Model.EmployeeDescription })
@Html.TextAreaFor(m => m.EmployeeDescription, new { @value = ViewBag.Model.EmployeeDescription })
정확히 같은 일이 @Value
와 @Html.TextBoxFor
을 위해 노력하고 있습니다 보여줍니다 하지만 TextArea
와 :(
아무도 도와 드릴까요 ...
예 모델 내 화면이 편집 화면 값입니다 때문에 모든 응답이
HTML 속성을 완전히 생략하면 어떻게됩니까? – tvanfosson
'@Value'또는 '@Text'부분을 완전히 제거하면됩니까? 이와 비슷한 것 @ Html.TextAreaFor (m => m.EmployeeDescription) 또한 작동하지 않으며 텍스트 영역이 여전히 비어 있습니다. –