Dear all, please help.
I am using CKEditor in first time with .Net 4.5.
I have a web site with a "Tip" section that should be updated daily.
On page load I am explicitly set value of CKEditor text.
--------------
protected void Page_Load(object sender, EventArgs e)
{
StreamReader str_reader;
String file_name = Server.MapPath("../inc/tip.html");
str_reader = File.OpenText(file_name);
ck_editor.Text = str_reader.ReadToEnd();
str_reader.Close();
}
----------------------
I need to get updated text on button click .
The following code returns the source text (loaded from file "tip.html" ) not entered by user.
--------------------
protected void btn_save_Click(object sender, EventArgs e)
{
StreamWriter str_writer;
String file_name = Server.MapPath("../inc/tip.html");
str_writer = new StreamWriter(file_name);
lbl_text.Text = ck_editor.Text;
}
--------------------
Please advise