If I have text data from a database which will contain NewLine characters
because it was entered from a Multi-Line TextBox, and now I want to display
the output in a Repeater or other DataBound List Control, how can I set it up
so that it'll properly show the text with the paragraph breaks, etc?
At first, I thought I'd just have to write a routine that did
s = s.Replace(Environment.Newline, "<br/>");
and that works fine for showing simple, one-off text. But if I want to put
this in a Repeater, how can I run my "Replace" function in-line in the
ItemTemplate of the repeater? Can I? If so, can you show me the syntax for
how to do that? Is this the bext way to do it?
Thanks.
Alex