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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -