Using Editable attribute on MVC 3 view model

后端 未结 5 1713
故里飘歌
故里飘歌 2020-12-10 05:58

I\'m looking to use attributes to mark view model properties as readonly so that the view fields are read only in the rendered view. Applying System.ComponentModel.DataAnnot

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-10 06:42

    don't know if you've figured this out yet, but we use

    System.ComponentModel.ReadOnlyAttribute
    

    usage

    [ReadOnly(true)]
    

提交回复
热议问题