E
Ed Anady
Shouldn't a textarea render HTML formatted code? I'm placing a literal
control in a table cell by doing the following...
LiteralControl lc = new LiteralControl( );
lc.Text = String.Format("<textarea rows=\"10\" cols=\"80\"
readonly>{0}</textarea>", Server.HtmlEncode(sr.ReadToEnd()));
The file contains HTML formatted text (e.g. <b>Now is the time...</b>)
but displays literally as "<b>Now is the time...</b>" instead of bolded
text. I've tried not encoding the text but it makes no difference.
Any help is appreciated.
control in a table cell by doing the following...
LiteralControl lc = new LiteralControl( );
lc.Text = String.Format("<textarea rows=\"10\" cols=\"80\"
readonly>{0}</textarea>", Server.HtmlEncode(sr.ReadToEnd()));
The file contains HTML formatted text (e.g. <b>Now is the time...</b>)
but displays literally as "<b>Now is the time...</b>" instead of bolded
text. I've tried not encoding the text but it makes no difference.
Any help is appreciated.