I have faced some issue with my code. I want to show only 10 characters from my string.
Here is my code.
<span style="font-size: medium">
@if (item.Name.Length > 10)
@item.Name.ToString(); // Here i want to show only 10 characters.
Please give me some idea to accomplish my task.