Forum  Community Devel...  Using the FCKEd...  FCKEditor.Value not updating
Previous Previous
 
Next Next
New Post 12/22/2010 12:53 PM
  Chaki_Black
1 posts
No Ranking


Re: FCKEditor.Value not updating 

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!

 

 
New Post 12/29/2010 2:53 PM
  palli
11824 posts
1st Level Poster




Re: FCKEditor.Value not updating 

Hi,

Welcome to Visual WebGui

Thanks a lot for sharing this information. Since this was originally reported, the problem has been fixed in version 6.4 as you can see in this tracker entry here. This is however valuable information to those using earlier versions of Visual WebGui, like 6.3.x

Thanks again,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 9/19/2011 5:48 AM
  maco2011
2 posts
No Ranking


Re: FCKEditor.Value not updating 

Hi,

it appears version 6.4.0 Release d introduced that problem again. Here is what I did:

Add a new form with nothing on it than a fckeditor control and a button. On button click the following method is executed:

private void button1_Click(object sender, EventArgs e)
{
var q = this.fckEditor1.Value;
MessageBox.Show(q);

Form f = new Form();
UserControl1 u = new UserControl1();
f.Controls.Add(u);
f.Width = u.MinimumSize.Width;
f.Height = u.MinimumSize.Height;
f.ShowDialog();
}

When I type something into the editor and click the button, the messagebox shows the editor's content behind a popup window with that user control.
Now, the user control has the same content, a fckeditor control and a button. In the button click event handler there are only these lines:

var q = this.fckEditor1.Value;
MessageBox.Show(q);

Whatever I type into the editor in that popup the editor's value is always empty.

Funny thing is, that everything work as expected in Firefox 6 but not in IE 9.

Any idea?

 
New Post 9/21/2011 3:00 PM
  palli
11824 posts
1st Level Poster




Re: FCKEditor.Value not updating 

Hi Marco,

Thanks for the report. Seems like it's the same problem as reported here and already fixed in the upcoming Release d.

Thanks again,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Community Devel...  Using the FCKEd...  FCKEditor.Value not updating
CompanionKit Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS