I need to bind multiple lines of text from backend in repeater.. i have used this.. Text='<%#Limit(Eval("feedback_details"),40)%>'
protected string Limit(object Desc, int length) { StringBuilder strDesc = new StringBuilder(); strDesc.Insert(0, Desc.ToString()); if (strDesc.Length > length) { return strDesc.ToString().Substring(0, length) + "..."; } else return strDesc.ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)