Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey ...
i used the HtmlEditorExtender to save my users comments !
as you know HtmlEditorExtender will save a text with many HTML tags (for example test has <b> TEST </b> ) ! well i used it correctly but my problem is desplaying saved text !

how can i show the text that has many html tags in my webpage ?
for example the text that contain
C#
<b> TEST </b>
must show TEST bold ...

i used <pre> and <code> but they didnt solve my problem , maybe i dont know how use them !

tnx alot plz help me
Posted
Comments
virang_21 11-Aug-12 23:17pm    
what kind of control you are displaying your text in ?
ali_heidari_ 11-Aug-12 23:44pm    
label or textbox... not diffrent any control just solve my problem
virang_21 12-Aug-12 0:32am    
try setting text property of label with content of your comment with html tags as is...
ali_heidari_ 12-Aug-12 2:12am    
i'd tried but it shows the tags too ... for example it shows <b> test </b> .... but i want it shows test in bold style.... do you understand?

HTML
<div style="border-width:"><font color="#0066ff"><version encoding="UTF-8"></version></font></div>
 
Share this answer
 
v2
<version encoding="UTF-8">
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900