How to do - MS SQL C# Excel Access
Tuesday, 24 October 2017
MVC - DisplayFor - Display nothing (empty) if 0
Watch this example on YouTube
Replace
@Html.DisplayFor(modelItem => item.SomeNumber)
With
if (item.SomeNumber != 0) {@Html.DisplayFor(modelItem => item.SomeNumber)}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment