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, ...dondon't know why I'm getting this error message....
Previous
 
Next
New Post
5/15/2008 4:23 PM
 

An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: The Controls collection cannot be modified because the control contains code blocks (i.e. ). ---> System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. ). at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Page.OnInit(EventArgs e) at DotNetNuke.Framework.PageBase.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

I purchased a skin, which I am modifying slightly for color, graphics, etc. I'm pretty decent with HTML and CSS, so all is going smoothly.  However, the skin has 3 columns, and for a few pages on my site, I want only 2 columns.  so I went into the skin, saved it with another name, and removed one of the columns in the ascx file.  Uploaded it, see it in the "page skin" choices, and choose that for my page.  Ever since, I get this error when I try to view that page.

I'm sure that is not the "right" way to copy and modify a skin.  I'm sure something else has been posted about this, but I can't find it because I'm not too sure what to search for.  If you can help or point me in the right direction, I'd much appreciate it.

Thanks!

 
New Post
5/28/2008 8:25 AM
 

I can guess and say that you gotten rid of something when removing the column that needed to be there ... without seeing the code, I couldn't say for sure, though.  Double and triple check your work to make sure you have all of your tags closed and properly syntaxed with closing brackets and such.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...dondon't know why I'm getting this error message....


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