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.0Weird Ajax issue - The Controls collection cannot be modified because the control contains code blocWeird Ajax issue - The Controls collection cannot be modified because the control contains code bloc
Previous
 
Next
New Post
4/7/2008 11:06 AM
 

Ok, I have a module that displays a dynamic calendar with next/prev links. I'm using Telerik's Rad Ajax. On my local 4.8.2 it works fine. When I install it on a prod server running the same version of DNN it generates the following error when I click prev or next.

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

If I go into the module settings and check the "Supports partial rendering" it then works without error. But on my local install that is not checked for my module. And again I'm using the RAD Ajax component so I didn't think I needed to use the "Supports partial renderging" box.

Any ideas? Thanks.

 
New Post
4/7/2008 12:58 PM
 

I had a similar error and had local script in the head section of the page.

The problem was corrected by moving the script out of the head and into the body section of the page.

Jim


Jim www.walkspoiled.com
 
New Post
4/7/2008 9:20 PM
 

I had a similar issue after I upgraded to 4.8.2 (when using a Rad Ajax / Multi-Page / Tabstrip / Gridview set of controls) - I got the same error (he Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). - when switching indexes in the TabStrip.

Your suggestion of checking the "Supports partial page rendering" did the trick for me - and the error went away.

I didn't think I needed that, because in my code behind I would always put in the following in the Page Load. 

If DotNetNuke.Framework.AJAX.IsInstalled Then
                    DotNetNuke.Framework.AJAX.RegisterScriptManager()

End If

However - after I examined my code - I see I forgot it on this control (must be why it broke after the upgrade).  I went back and put it in the Page Load, unchecked the "Supports Partial Page Rendering" in module definitions - and it worked.  (I am presuming that the Ajax fix for 4.8.2 had something to do with this one).

 

 
New Post
4/8/2008 1:04 PM
 

Thank you! This worked for me. I'm still not sure why it worked on my localhost without this since the version of DNN and the RAD components were the same on both. Oh well, at least it's working now.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Weird Ajax issue - The Controls collection cannot be modified because the control contains code blocWeird Ajax issue - The Controls collection cannot be modified because the control contains code bloc


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