Subject: Text Formating in ASP.Net Textbox
Posted By: aliirfan84 Post Date: 5/19/2007 7:30:41 AM
I m saving data in to database from RTF control. It works well. But when I display data into textbox, it looses its formating and display along with HTML tags.

eg <BR> ALI <B>IRFAN</B>.

Please tell me how to control this scenario and to display data in actual formating in TextBox from database.

THANKS

Reply By: timeware Reply Date: 5/22/2007 7:48:13 AM
Try displaying it as a label (Unless you need to re-edit the text in which case use your rtf control).


Reply By: aliirfan84 Reply Date: 5/22/2007 11:01:02 PM
Ok Dear Thanks alot

Is there any RTF contol in ASP.Net control toolbox? Or we have to use 3rd party component



Reply By: zaghmout Reply Date: 5/23/2007 12:40:13 AM
I really don't think there is one on the asp.net..
and if their isn't.. i suggest you create ur own web control

Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"
Reply By: timeware Reply Date: 5/25/2007 3:04:59 AM
Try

http://www.webwizguide.com/asp/sample_scripts/RTE_application.asp

It works in asp.net but please remember the security implications of allowing it on your site. (Preventing SQL injection!)




Go to topic 60963

Return to index page 2
Return to index page 1