Hi,
(Beginner here)
I want to update a database with a value in a (CKEditor) textarea control in a DataGrid (asp.net).
To do this I need to reference the value in the a textarea (i.e CKEditor) control but it just returns a "null" despite there being data in there - I have the CKEditor control working well otherwise. The following is the bit of code I'm having problems with:
HtmlTextArea htmTxArea = (HtmlTextArea)e.Item.FindControl("editor1");
string stWork = htmTxArea.Value;
Note : "editor1" is the name of the textarea control in my datagrid EditItemTemplate.
References to other non CKEditor applicable controls in the grid work well.
Might it be something to do with the fact that the textarea control is ASP and I'm referencing HTMlTextArea control?
Thanks in advance.
(Beginner here)
I want to update a database with a value in a (CKEditor) textarea control in a DataGrid (asp.net).
To do this I need to reference the value in the a textarea (i.e CKEditor) control but it just returns a "null" despite there being data in there - I have the CKEditor control working well otherwise. The following is the bit of code I'm having problems with:
HtmlTextArea htmTxArea = (HtmlTextArea)e.Item.FindControl("editor1");
string stWork = htmTxArea.Value;
Note : "editor1" is the name of the textarea control in my datagrid EditItemTemplate.
References to other non CKEditor applicable controls in the grid work well.
Might it be something to do with the fact that the textarea control is ASP and I'm referencing HTMlTextArea control?
Thanks in advance.