I have a situations when I trying to display bool? value. In case if my bool doesn't exist:
@Html.DisplayFor(m => m.HasType)
Shows text "Not set". By itself it is fine, but I need show another text. How can I replace "Not set", for example with "Empty"?
I could just do something like:
@if (!Model.HasType.HasValue)
{
...
}
else
{
...
}
But I want to know, is there a possibility to change "Not set" itself.
P.S Sorry for my bad english.