c# - Changing Html.DisplayFor bool? text -
i have situations when trying display bool? value. in case if bool doesn't exist:
@html.displayfor(m => m.hastype)
shows text "not set". fine, need show text. how can replace "not set", example "empty"?
i like:
@if (!model.hastype.hasvalue) { ... } else { ... }
but want know, there possibility change "not set" itself.
p.s sorry bad english.
Comments
Post a Comment