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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Error in TextEditor Control When Loaded in ASPX Pop-UpError in TextEditor Control When Loaded in ASPX Pop-Up
Previous
 
Next
New Post
9/18/2009 4:28 PM
 

Do you actually have a DNN label on the page or is it in the texteditor control?  If it is not on your page, try removing the @register for the label.  If it is on your page, try  changing the name.  (Label to MyLabel or something)

 
New Post
9/18/2009 4:42 PM
 

I did look and the texteditor.ascx does register the label control.

<%@ Register TagPrefix="dnn" TagName="label" Src="~/controls/labelControl.ascx" %>

Where is your pop up page located? Is it in the root?  Seems like the texteditor can't find the label control. 

 
New Post
9/19/2009 12:33 PM
 

~/desktopmodules/mymodulename/page.aspx


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
9/19/2009 4:52 PM
Accepted Answer 

Not immediately seeing why this was not working after looking at the source code for the text editor user control and dnn label control I had to try replicating your problem in a DNN source installation to be able to step into the label control code. Here's the actual exception that is being logged (twice for each aspx page load) in the event viewer (with the key point highlighted):

StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. ---> System.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Utilities.ClientAPI.RegisterDNNVariableControl(Control objParent) at DotNetNuke.UI.Utilities.ClientAPI.get_ClientVariableControl(Page objPage) at DotNetNuke.UI.Utilities.ClientAPI.GetClientVariableList(Page objPage) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientVariable(Page objPage, String strVar, String strValue, Boolean blnOverwrite) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Page objPage, ClientNamespaceReferences eRef) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Page objPage, ClientNamespaceReferences eRef) at DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(Control objButton, Control objContent, Int32 intModuleId, Boolean blnDefaultMin, String strMinIconLoc, String strMaxIconLoc, MinMaxPersistanceType ePersistanceType, Int32 intAnimationFrames, String strPersonalizationNamingCtr, String strPersonalizationKey) in C:\DNN5Dev\Library\UI\Utilities\ClientAPI.vb:line 155 at DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(Control objButton, Control objContent, Int32 intModuleId, Boolean blnDefaultMin, String strMinIconLoc, String strMaxIconLoc, MinMaxPersistanceType ePersistanceType, Int32 intAnimationFrames) in C:\DNN5Dev\Library\UI\Utilities\ClientAPI.vb:line 149 at DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(Control objButton, Control objContent, Int32 intModuleId, Boolean blnDefaultMin, String strMinIconLoc, String strMaxIconLoc, MinMaxPersistanceType ePersistanceType) in C:\DNN5Dev\Library\UI\Utilities\ClientAPI.vb:line 141 at DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(Control objButton, Control objContent, Boolean blnDefaultMin, MinMaxPersistanceType ePersistanceType) in C:\DNN5Dev\Library\UI\Utilities\ClientAPI.vb:line 111 at DotNetNuke.UI.UserControls.LabelControl.Page_Load(Object sender, EventArgs e) in C:\DNN5Dev\Library\UI\UserControls\LabelControl.vb:line 243

The RegisterClientVariable method requires that the page's form contain a hidden input control with id and name of "__dnnVariable". Add the following markup to your aspx page's form and I think you'll have this working:

<input id="__dnnVariable" runat="server" name="__dnnVariable" type="hidden" />

No doubt you may find other similar problems when hosting dnn controls outside of a module container on the Default.aspx page.


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
9/22/2009 12:37 AM
 

Use the default.aspx as a base for your page. There is some special controls added inthere like the client variable.


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Error in TextEditor Control When Loaded in ASPX Pop-UpError in TextEditor Control When Loaded in ASPX Pop-Up


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