Hello DNN World,
I've searched under countless forum entries for the FCK Editor returning a blank value when submitting a form (some as recent as a week ago). Many of the answers indicate that this is an issue with the module being in an ajax update panel. However, it's not clear on how to resolve this. In DNN 5 you cannot switch of Ajax as per some of the previous discussions so what do we need to do? If you know how to do this please let me know!!!
I've read the article where we are trying to complete a full postback, so we have the code
The code steps through this when debugging, but again, no luck, we're still getting a blank value.
So the code we have is
<li>
<asp:Label runat="server" ID="lblBody" AssociatedControlID="txtBody" Text="Body" />
<dnn:TextEditor id="txtBody" runat="server" width="500" Height="300"/>
</li>
And the code behind simply does the following
_article.Body = txtBody.RichText.Text;
protected void Page_Init(object sender, EventArgs e){
if (DotNetNuke.Framework.AJAX.IsInstalled())Control cmdUpdate = Parent.TemplateControl.FindControl("btnSubmit");
if (cmdUpdate != null) DotNetNuke.Framework.AJAX.RegisterPostBackControl(cmdUpdate); }
Cheers
From a frustrated Karl.........