I'm using FCKeditor in a ASP.NET page. The field is called "WorkLog"
In a VB code behind fiel I'm attempting to determine the value of that field by using the FindControl.
Dim MyWorkLog As TextBox = CType(EditIncidentSummaryForm.FindControl("WorkLog"), TextBox)
Unable to cast object of type 'FredCK.FCKeditorV2.FCKeditor' to type 'System.Web.UI.WebControls.TextBox'.
Can someone tell me what I'm doing wrong?
-MARK-
In a VB code behind fiel I'm attempting to determine the value of that field by using the FindControl.
Dim MyWorkLog As TextBox = CType(EditIncidentSummaryForm.FindControl("WorkLog"), TextBox)
Unable to cast object of type 'FredCK.FCKeditorV2.FCKeditor' to type 'System.Web.UI.WebControls.TextBox'.
Can someone tell me what I'm doing wrong?
-MARK-
How to Access Data in ASP.NET code behind
I'm trying to figure out how to go about retreiving the data entered into FCKEditor from a ASP.NET 2.0 code behind file. I've treid two differant methods and BOTH give me errors.
The First using the "findControl' methos
Dim MyWorkLog As TextBox = CType(EditIncidentSummaryForm.FindControl("WorkLog"), TextBox)
produces this error:
Unable to cast object of type 'FredCK.FCKeditorV2.FCKeditor' to type 'System.Web.UI.WebControls.TextBox'
The Second using Request.Form as you would in a regular ASP page.
Dim MyWorkLog As String = Request.Form("WorkLog").ToString
Produces a 'Object referance not set' error
Can anyone tell me what I'm doing wrong?
-MARK-
RE: ASP.NET Error Meaasge
RE: ASP.NET Error Meaasge
Can you point me to some documentation or a sample somewhere that explains exactly how to do this? I was not able to find anything in the documnetation I saw online that explans this.
Thanks in Advance for your assistance.
-MARK-
RE: ASP.NET Error Meaasge
Dim MyWorkLog As FCKeditor = CType(EditIncidentSummaryForm.FindControl("WorkLog"), FCKeditor)
(as long as you have added the proper namespace), but this is basic asp.net, it isn't related to the editor itself.
RE: ASP.NET Error Meaasge