MVC3 EditorTemplate for a nullable boolean using RadioButtons

前端 未结 6 1879
深忆病人
深忆病人 2020-12-05 10:55

I have a property on one of my objects that is a nullable boolean, I want my logic to have true represent Yes, false to be No and null to be N/A. Now because I am going to h

6条回答
  •  爱一瞬间的悲伤
    2020-12-05 11:19

    You just need to handle the special null case like so:

    
    
    
    

提交回复
热议问题