I have a need to insert a
via @HTML.DisplayFor
when the backing model's value is null or empty.
I've tried using data annotations
[DisplayFormat(ConvertEmptyStringToNull = true, NullDisplayText =" " ]
public string MiddleName { get; set; }
which does work to stick a " " where I expect it but I need to put a non-breaking space there instead.