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

Display data in RadEditor from Dtabase

1 Answer 38 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dhruval Dave
Top achievements
Rank 1
Dhruval Dave asked on 11 Feb 2010, 04:32 AM
Hello sir,
            I want to retrive data from database in to radeditor and i use below code retrive data but it will only display name of datatable not display content in it.



           string ContentBlog = adaBlogContent.GetData(Convert.ToInt16(drpBlogTitle.SelectedValue)).ToString();
            radEditor.Content = ContentBlog;

1 Answer, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 11 Feb 2010, 05:27 PM
What does this GetData() method return if you have to convert it to a string? The RadEditor can only display text.

I'm assuming you're returning a DataTable and converting it to a string, thus the reason it shows the database name. You need to set it to the column that contains the content.
Tags
Editor
Asked by
Dhruval Dave
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
Share this question
or