Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Weird Ajax issue - The Controls collection cannot be modified because the control contains code bloc
Previous Previous
 
Next Next
New Post 4/7/2008 9:06 AM
User is offline Dan Duda
71 posts
10th Ranked


Weird Ajax issue - The Controls collection cannot be modified because the control contains code bloc 

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 10:58 AM
User is offline Jim Bonnie
116 posts
www.walkspoiled.com
9th Ranked






Re: Weird Ajax issue - The Controls collection cannot be modified because the control contains code bloc 

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 7:20 PM
User is offline Kevin Wood
8 posts
10th Ranked


Re: Weird Ajax issue - The Controls collection cannot be modified because the control contains code  

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 11:04 AM
User is offline Dan Duda
71 posts
10th Ranked


Re: Weird Ajax issue - The Controls collection cannot be modified because the control contains code  

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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Weird Ajax issue - The Controls collection cannot be modified because the control contains code bloc
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


SSL Enabled and Amazingly FAST...
SSL enable your DNN web site with SSLRedirect, compress your DNN web site HTTP data flow by up to 75%-90% with HttpCompressionAgent, and monitor your DNN web site's performance with WebKeepAlive...
www.sanibellogic.com
Ultra Media Gallery & Video Gallery
The most popular photo gallery and video gallery module. with Flash interface.
www.bizmodules.net
WDK Solutions
Quality modules for the DotNetNuke community. Check out our 'wild' modules!
wdkns.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP