Hope somebody has a good idea. I have strings like this:
abcdefg abcde abc
What I need is for them to be trucated to show like this if more
Code behind:
string shorten(sting s) { //string s = abcdefg; int tooLongInt = 3; if (s.Length > tooLongInt) return s.Substring(0, tooLongInt) + ".."; return s; }
Markup:
<%= shorten(YOUR_STRING_HERE) %>