I'm adding a new layout to my existing skin. I simply copied an existing ascx and changed the unique HTML and then uploaded it to the skin directory on the server The template is showing up under Admin > Skins, but when I apply it to a page, it displays this:
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.ProcessModule(ModuleInfo module) at DotNetNuke.UI.Skins.Skin.ProcessMasterModules() at DotNetNuke.UI.Skins.Skin.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.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 ---
Is this some issue with my page or something else? I vaguely remember having to define templates in an xml page?
It's been awhile since I've done this. Thanks!