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.
2.1m questions
2.1m answers
60 comments
56.8k users