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!