Rad Editor Html Content saving problem

3 posts, 1 answers
  1. Rama
    Rama avatar
    22 posts
    Member since:
    Jun 2012

    Posted 09 Feb 2012 Link to this post

    Hello All,

    I am loading HTML content (some template) into rad editor and it is loading fine.I am happy.But If I did any modifications in it there I am facing problem.

     Problem is , I want to save the content of the rad editor after editing the template,what ever I am loading.But When I tried to check.The Content is empty.

    I am using " RadEditor.Content".Why it is happening.The content is still there na.Please help me.It is high priority for me.

    Thanks.

    Rama.M




























  2. Answer
    Rumen
    Admin
    Rumen avatar
    14361 posts

    Posted 10 Feb 2012 Link to this post

    Hello,

    The case could be that the editor's original value overwrites the one submitted from the browser. This happens, for example, if you did not put the initial value setting in a if block checking whether the page is postback. Here is what you should do in your Page_Load method:

      If Not Page.IsPostBack Then
                    ' Set the editor content here
      End If

    You can also test the following examples: Save In Database and Save In External File.

    Greetings,
    Rumen
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Rama
    Rama avatar
    22 posts
    Member since:
    Jun 2012

    Posted 11 Feb 2012 Link to this post

    Hello Rumen,

    Thanks alot for the replay.I found the problem.your right,because of the page post back I am loosing the data in the Editor.
    I resolved that.


    Thanks
    Rama.M
Back to Top