Composite usercontrol in Umbraco (control that contains other usercontrols)
I am developing a usercontrol that I would like to embed in Umbraco 4.0 as a macro. There are about four controls within the "main" control, so it is a sort of "composite" usercontrol that depends on and contains others. I have copied all the .ascx files to the usercontrols folder, and the assembly to the bin directory.
When I attempt to Browse Properties of the "main" control (PhotoGallery.ascx) that hosts the others, in the Umbraco control panel, I get the following:
System.Web.HttpParseException: The file '/ucLogin.ascx' does not exist. ---> System.Web.HttpParseException: The file '/ucLogin.ascx' does not exist. ---> System.Web.HttpException: The file '/ucLogin.ascx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at....
Is it possible to embed a usercontrol in Umbraco that contains other usercontrols?
Details: Umbraco 4.0 ASP.NET 3.5 on IIS 5.1 (XP) Visual Studio 2008 Pro
Nevermind... I was being dense. The <%@ Register.. %> directives for the contained controls had "~/" in front of the references to the other controls. Duh. ;)
Composite usercontrol in Umbraco (control that contains other usercontrols)
I am developing a usercontrol that I would like to embed in Umbraco 4.0 as a macro. There are about four controls within the "main" control, so it is a sort of "composite" usercontrol that depends on and contains others. I have copied all the .ascx files to the usercontrols folder, and the assembly to the bin directory.
When I attempt to Browse Properties of the "main" control (PhotoGallery.ascx) that hosts the others, in the Umbraco control panel, I get the following:
System.Web.HttpParseException: The file '/ucLogin.ascx' does not exist. ---> System.Web.HttpParseException: The file '/ucLogin.ascx' does not exist. ---> System.Web.HttpException: The file '/ucLogin.ascx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at....
Is it possible to embed a usercontrol in Umbraco that contains other usercontrols?
Details:
Umbraco 4.0
ASP.NET 3.5 on IIS 5.1 (XP)
Visual Studio 2008 Pro
Thanks!
Dave
Nevermind... I was being dense. The <%@ Register.. %> directives for the contained controls had "~/" in front of the references to the other controls. Duh. ;)
is working on a reply...