Display data in RadEditor from Dtabase

2 posts, 0 answers
  1. Dhruval Dave
    Dhruval Dave avatar
    9 posts
    Member since:
    Feb 2010

    Posted 10 Feb 2010 Link to this post

    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;
  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 11 Feb 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top