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

Rad Editor Html Content saving problem

2 Answers 167 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rama
Top achievements
Rank 1
Rama asked on 09 Feb 2012, 06:31 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 10 Feb 2012, 04:58 PM
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 >>
0
Rama
Top achievements
Rank 1
answered on 11 Feb 2012, 10:08 AM
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
Tags
Editor
Asked by
Rama
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Rama
Top achievements
Rank 1
Share this question
or