Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dave Swersky 2 posts 0 karma points
    Jul 30, 2009 @ 13:25
    Dave Swersky
    0

    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

  • Dave Swersky 2 posts 0 karma points
    Jul 30, 2009 @ 13:39
    Dave Swersky
    0

    Nevermind... I was being dense.  The <%@ Register.. %> directives for the contained controls had "~/" in front of the references to the other controls.  Duh. ;)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies