Last post Mar 15, 2007 11:44 AM by Mikesdotnetting
Mar 15, 2007 08:36 AM|kamii47|LINK
I have a text area control inside grid
When I enter a line break in th text area and save the data my line break saved incorectly.
When I see the data in the data base I see character.
When I see the data on the html page line break is gone
What Will I have to do ?
Mar 15, 2007 11:44 AM|Mikesdotnetting|LINK
Since you are displaying your text as html, you have to replace your line-breaks with the html character that does this ie "<br />"
eg <%# DataBinder.Eval(Container.DataItem, "MyText").ToString().Replace("\r","<br />") %>