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

[Solved] Line break got ignored on insert and data binding?

1 Answer 118 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kenny
Top achievements
Rank 1
Kenny asked on 23 May 2008, 06:49 PM
Hi all,
I've used RadEditor to insert text to my database. I have a custom edit page that I also uses RadEditor. But during data binding (I've used content='<%# Bind("MyContent" %>'), the line-break doesn't appear. Everything appeared as one long line.

I've check on the RadEditor before my insert and see that the line break tag are <br/>, but when insert to SQL database, the <br/> tag disappeard and replaced by squared symbols. Any help would be greatly appreciated.

Thanks,
Kenny.

1 Answer, 1 is accepted

Sort by
0
Kenny
Top achievements
Rank 1
answered on 23 May 2008, 07:03 PM
I found out the problem. During insert, I've used RadEditor1.Text to capture the content instead of RadEditor1.Content.

Kenny.
Tags
Editor
Asked by
Kenny
Top achievements
Rank 1
Answers by
Kenny
Top achievements
Rank 1
Share this question
or