problem with radeditor.content

3 posts, 1 answers
  1. sadiqabbas
    sadiqabbas avatar
    21 posts
    Member since:
    Mar 2009

    Posted 31 Jan 2010 Link to this post

    hi all
    i create project with using radeditor 2008 q3 (2008.3.1314.20)
    i am using access database
    example below
    page load
         dataset ds = c1.getaccessdata("select data from raddata where pageid='temp';");
         RadEditor1.Content = ds.Tables[0].Rows[0].ItemArray[0].ToString();
    protected void Button1_Click(object sender, EventArgs e)
            string radvalue = con.correctstr(RadEditor1.Content);
            String temp = "UPDATE raddata SET data='" + RadEditor1.Content + "' WHERE pageid='temp';";

    this is rough coding just giving idea

    please help me with this

    on page i am using:

    please reply fast as this is my college project and i have to submit it after 2 days
    please needed help very badly

  2. Answer
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 01 Feb 2010 Link to this post

    Not sure exactly what issues you are running into but from the look of things you are using the RadEditor's Content property as a String, which is correct. Here's a small sample page which shows how to get and set the content of the RadEditor, which should work for you. What are the problems you are experiencing with the RadEditor?

    <html xmlns=""
    <head id="Head1" runat="server"
        <form id="form1" runat="server"
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        <asp:Button ID="myButton" runat="server" Text="Set Content" OnClick="myButton_Click" /> 
        <br /> 
        <asp:Button ID="testButton" runat="server" Text="Get Content" OnClick="testButton_Click" /> 
        <br /> 
        <telerik:RadEditor ID="RadEditor1" runat="server"

        protected void Page_Load(object sender, EventArgs e) 
            if (!IsPostBack) 
                RadEditor1.Content = "Load Content"
        protected void myButton_Click(object sender, EventArgs e) 
            RadEditor1.Content = "Test"
        protected void testButton_Click(object sender, EventArgs e) 

  3. sadiqabbas
    sadiqabbas avatar
    21 posts
    Member since:
    Mar 2009

    Posted 08 Feb 2010 Link to this post

    i got it

    so silly i was

    i forgot to insert

Back to Top