This is a migrated thread and some comments may be shown as answers.

HTMLTextBox displays HTML as a plain text

0 Answers 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alexey
Top achievements
Rank 1
Alexey asked on 06 Oct 2011, 05:08 AM
Good day,

I'm using value from database as a HTMLTextBox value and it displays it 'as is' (as a plain text). However, if I use the same HTML as HTMLTextBox value (add it directly, not from database) it displays it correctly. This is HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css"> .p_CC664AAA { margin: 0px 0px 12px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; } .s_E6FD2046 { font-family: 'Verdana';font- style: Normal;font-weight: normal;font-size: 16px;color: #000000; } .p_D6859706 { margin: 0px 0px 12px 28px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; } .p_A2A17249 { margin: 0px 0px 12px 56px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; } .p_22B181B1 { margin: 0px 0px 12px 84px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; } .s_D94397EA { font-family: 'Verdana';font- style: Normal;font-weight: normal;font-size: 16px;color: #000000;background-color: #FFFF00; } </style></head><body><p class="p_CC664AAA"><span class="s_E6FD2046">This</span></p><p class="p_D6859706"><span class="s_E6FD2046">is</span></p><p class="p_A2A17249"><span class="s_E6FD2046">a</span></p><p class="p_22B181B1"><span class="s_D94397EA">test of the case note tool</span><span class="s_E6FD2046" /></p></body></html>

HOw can I fix it?

Regards,
Alex

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Alexey
Top achievements
Rank 1
Share this question
or