W
=WereWolf=
I noticed that any WebControl, rendering its html code through
HtmlTextWriter, gets crlf characters in Text property translated to "<br>" or
nothing.
This is pretty good in normal circumstances.
But it's annoying since i'm trying to databind the text property of a
multiline TextBox control and i need to mantain crlf from the datasource. I
also tried with a textarea with runat=server.
Even with a custom control nothing changes: i tried to override the render
method, simply writing some text with CRLFs to the htmlTextWriter, but CRLFs
are ignored.
Any suggestion will be appreciated.
Thank you!
HtmlTextWriter, gets crlf characters in Text property translated to "<br>" or
nothing.
This is pretty good in normal circumstances.
But it's annoying since i'm trying to databind the text property of a
multiline TextBox control and i need to mantain crlf from the datasource. I
also tried with a textarea with runat=server.
Even with a custom control nothing changes: i tried to override the render
method, simply writing some text with CRLFs to the htmlTextWriter, but CRLFs
are ignored.
Any suggestion will be appreciated.
Thank you!