Problem
with getting value from FCKeditor (FCKeditor.Value) at ASP.Net
1. If initial value FCKeditor.Value not set, there is no
problem, all values, which are placed to FCKeditor can get with FCKeditor.Value.
2. Problem: if initial value FCKeditor.Value is not null,
then if I want get value, it gives me only initial value.
I
have solved!!!!
I
spent the whole day ... Hardly found the answer.
Specially
registered to write a reply!
Look!
Example:
// Set initial value to FCKeditor
void Page_Init(object
sender, EventArgs e)
{
DataTable dT_01 =
new DataTable();
dT_01 = DataLayerMainContent.ArticlesSelect(2);
FCKeditor_Edit.Value = dT_01.Rows[0]["ArticleText"].ToString();
}
Attention!!!
You have not to do this here!!
protected void
Page_Load(object sender, EventArgs e)
{
//
Not here!!!
}
// And get Value from FCKeditor
protected void
Btn_ContentEditedSave_Click(object sender, EventArgs e)
{
//FCKeditor_Edit.Value
// And add this value to DataBase
DataLayerAdminPost.ContentMainEdit(1, FCKeditor_Edit.Value);
Response.Redirect(Request.RawUrl);
}
Main Idea!
Set initial value to FCKeditor at Page_Init!