title: NullDisplayText Data Attribute
body: <p>I have an MVC application and I am trying to assign the <code>NullDisplayText</code> property to fields in my model, but am not getting any results.</p>
  
  <p>Here is a portion of my model with the data attribute, where a null value should cause the output "(None)"...</p>
  
  <pre><code>Public Class Task
      ...
      &lt;DisplayFormat(NullDisplayText:="(None)", ApplyFormatInEditMode:=True, ConvertEmptyStringToNull:=True)&gt;
      Public Property EstimatedPrice As Nullable(Of Decimal)
      ...
  End Class
  </code></pre>
  
  <p>When I access this property in my view (strongly typed to Task of course) like so...</p>
  
  <pre><code>@ModelType ProjectName.Task
  @Html.ValueFor(Function(model) model.EstimatedPrice)
  </code></pre>
  
  <p>The debugger says <code>model.EstimatedPrice = Nothing</code> but the output is nothing. Why is the <code>NullDisplayText</code> attribute not correctly working here?</p>
  
  <p>Any ideas what is going wrong?</p>