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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)
Previous
 
Next
New Post
3/7/2012 3:47 PM
 

OK, I got it.

Your container looks like a skin, you are using objects (like the menu) that are normally used in a skin. If I use your container as a skin it works as expected

Reason for the error is the first line, you should use

<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Containers.Container" %> in a container (and remove the second line)

Also, for both ascx files you should remove the <html>...<body> and </body></html> parts.

These are injected by DNN automatically

HTH Timo 

 
New Post
3/7/2012 3:58 PM
 
Yes, this is intended to be a skin. Does removing the and tags resolve this error?
 
New Post
3/8/2012 2:56 AM
 

Ah, you used container in your text and I assumed this was meant to be a container, but you meant a containing div in a skin....
I tested the skin in DNN6 as a skin and I don't get an error at all, so that's strange.

Did you try it on an empty page too?

About removing the extra <body> tags.
No it doesn't cause the issue, but it does prevent other issues with your css later.
If you don't remove them, you will have double <html><body> elements on your page causing all kinds of potential styling issues in different browsers.

More info: http://www.40fingers.net/WeblogsNews/...

 
New Post
3/8/2012 12:59 PM
 
This worked perfedtly. Thanks much for all your help:)
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)


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