Hide editor-label for public property when calling EditorFor(…)?

前端 未结 1 377
自闭症患者
自闭症患者 2021-01-12 21:10

When calling Html.EditorFor(m => m), where m is a public class with public properties, a hidden input and a label are displaye

相关标签:
1条回答
  • 2021-01-12 21:54

    Solved with:

    [HiddenInput(DisplayValue=false)]
    

    Otherwise HideSurroundingHtml is not set correctly.

    0 讨论(0)
提交回复
热议问题