Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
RobW95
Posts
Comments
C
C#
•
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