You'll need to use String.Replace("\n", "<br/>")
-Brock
DevelopMentor
http://staff.develop.com/ballen
> Hello,
>
> I read data from a DB field where a line feed ("\n") is in.
> I put this data as text to a label web control.
> In the HTML page the line feeds are shown as real line feeds in the
> HTML
> source.
> But in the label itself on the page in the browser the line feeds are
> ignored.
> How can I change the line feeds to HTML syntax (<br/>)?
>
> This does not work:
> Server.HtmlEncode(text)