Consider I have a part on my website which I want to show news summary. Is there any way to add three dots after specified amount of characters in C#?
Simple string manipulation should suffice:
if (str.Length > MaxLength) str = str.SubString(0, MaxLength - 3) + "...";
Boom done.
1.4m articles
1.4m replys
5 comments
57.0k users