RobW95
RobW95
CC#
Created by RobW95 on 6/12/2023 in #help
Html.DisplayName cutting off text
I am using ASP Net Core with .NET 6. I am trying to display data into an HTML table.
item.ToString()
"79.4%"
@Html.DisplayName(item.ToString())
"4%"
item.ToString()
"79.4%"
@Html.DisplayName(item.ToString())
"4%"
Can anyone explain why the text is getting cut off in the above snippet?
3 replies