Hey all. I wonder if I'm doing something wrong? I've got a user control that loads up an FCK Editor. The editor loads up fine and sets the value to a field from my database. The problem though is if I'm saving something new, I get a "" as a value. If I preload data into the control, it works fine. Any ideas? Thanks.
Here's my code:
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<FCKeditorV2:FCKeditor id="txtLongDescription" BasePath="~/FCKeditor/" runat="server" Height="500px" Width="800px" />
Value = this.txtLongDescription.Value;
if (Value.Length > 0)
{
Value = this.txtLongDescription.Value;
entContent.LongDescription = Value;
}
Here's my code:
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<FCKeditorV2:FCKeditor id="txtLongDescription" BasePath="~/FCKeditor/" runat="server" Height="500px" Width="800px" />
Value = this.txtLongDescription.Value;
if (Value.Length > 0)
{
Value = this.txtLongDescription.Value;
entContent.LongDescription = Value;
}