Last post Dec 24, 2010 04:46 AM by jayaprakash.mca
Mar 18, 2009 02:20 AM|ISmellGas|LINK
I am trying to use the value from FCKeditor as a parameter for a stored procedure. The problem is I keep getting the error "The name 'FCKeditor1' does not exist in the current context".
I have managed to display and bind FCKeditor fine so I don't think it s a problem with not adding the assembly to the project.
Here is the code:
protected void Button1_Click(object sender, EventArgs e)
SqlCommand cmd = new SqlCommand("UpdateContent", new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString1"].ConnectionString));
cmd.CommandType = CommandType.StoredProcedure;
Label1.Visible = true;
Label1.Text = "The content has been updated.";
Thanks in advance
Mar 18, 2009 05:56 AM|Steelymar|LINK
Try to debug something like this:
Label1.Text = FCKeditor1.Value
I think that the problem is in binding of FCKeditor
Mar 18, 2009 07:12 AM|Naom|LINK
We used FCKEditor in our application too. If the thread would not be resolved till night today, I'll check some of our code.
Mar 18, 2009 03:31 PM|ISmellGas|LINK
You are right Steelymar,
I still get the "FCKeditor1' does not exist in the current context" error.
I am not sure where I am going wrong.
The FredCK.FCKeditorV2.dll is in the bin directory.
Mar 18, 2009 04:32 PM|Steelymar|LINK
Follow this steps:
Dec 22, 2010 04:44 PM|Chaki_Black|LINK
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!
// 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["ArticleText"].ToString();
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)
// And add this value to DataBase
Set initial value to FCKeditor at Page_Init!
Dec 24, 2010 04:46 AM|jayaprakash.mca|LINK
some times it may happen, recreate the page.