how to bind multiple lines of text in repeater
I need to bind multiple lines of text from backend in repeater..
i have used this..
Text='<%#Limit(Eval("feedback_details"),40)%>'
aspx.cs file...
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();
}
it displays the text in same line like this
this is a sample.......
i want to implement like this
this is a sample paragraph.
this is a sample paragraph.
this is a....
kindly help me..