public string String_Truncate(string source, int length) { try { if (source.Length > length) { source = source.Substring(0, length); } } catch (Exception ex) { // } return source; }
Login to post response