Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0TextEditor Control In ModuleSettings - AJAX Update PanelTextEditor Control In ModuleSettings - AJAX Update Panel
Previous
 
Next
New Post
3/8/2008 12:30 AM
 

I just spent the better part of the evening trying to discover why a TextEditor control (FCK Editor) that had been working fine on a module settings page in DNN versions prior to 4.07.00 no longer would return modified html in DNN version 4.08.00. I had seen threads in the forums and Gemini relating to problems with the TextEditor in an AJAX UpdatePanel but did not realize at first that the entire ModuleSettings control (including our specific settings.ascx controls)  is now automatically getting wrapped in an AJAX UpdatePanel if AJAX support has been enabled in Host Settings. This change caused my module settings page to break and I suspect the same for many other developers.  I have since noted that the issue has been logged in Gemini but is still awaiting a fix - either in wrapping the ModuleSettings control with an UpdatePanel or in the FCK Editor provider.

Since my use of the TextEditor control used its own submit button to update the underlying data store, I was able to work around this by registering the submit button to use regular postbacks:

'In your Settings.ascx.vb - Page_Init but should also work in LoadSettings()
If Framework.AJAX.IsInstalled Then
     Framework.AJAX.RegisterPostBackControl(cmdTextEditorSubmit)
End If

But, what if you don't have your own submit button for submitting changed text from the TextEditor control and are doing so in the overridden UpdateSettings method following a click of the ModuleSettings control's Update link button? The following seems to be a good workaround until a core solution is released:

'In your Settings.ascx.vb - Page_Init but should also work in LoadSettings()
If Framework.AJAX.IsInstalled Then
     Dim cmdUpdate As Control = Me.Parent.TemplateControl.FindControl("cmdUpdate")
     If Not cmdUpdate Is Nothing Then  Framework.AJAX.RegisterPostBackControl(cmdUpdate)
End If


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/10/2008 10:27 AM
 

This is a great post! 

I just dealt with this "issue" in a few of my modules...


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
3/12/2008 12:41 PM
 

So how about the edit profile area?  Looks like they wrapped it in the UpdatePanel as well because now we can't save any fields with the texteditor control under the dit profile area.  Gotta love it!


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
4/8/2008 7:46 AM
 
Here is translation to C#. Great workaround. Thank you very mutch William.

if (DotNetNuke.Framework.AJAX.IsInstalled())
{
Control cmdUpdate = Parent.TemplateControl.FindControl("cmdUpdate");
if (cmdUpdate != null) DotNetNuke.Framework.AJAX.RegisterPostBackControl(cmdUpdate);
}

Sander
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0TextEditor Control In ModuleSettings - AJAX Update PanelTextEditor Control In ModuleSettings - AJAX Update Panel


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out