Retrieving File from Current Portal Skin Directory

Last post 07-20-2006 6:54 PM by rambear. 1 replies.

Sort Posts:

  • Retrieving File from Current Portal Skin Directory

    07-17-2006, 2:46 PM
    • Member
      95 point Member
    • rambear
    • Member since 09-29-2004, 2:20 PM
    • Posts 25
    We're trying to grab an .ascx from the current portal's/current skin directory so we can insert it into a custom module's view page.  Can anyone explain how to do this?
  • Re: Retrieving File from Current Portal Skin Directory

    07-20-2006, 6:54 PM
    • Member
      95 point Member
    • rambear
    • Member since 09-29-2004, 2:20 PM
    • Posts 25

    Well, I figured out how to use

    DotNetNuke.Common.GetPortalSettings.ActiveTab.SkinPath

    to locate the current directory.

    What we're trying to do is pull in an .ascx from the portal's skin directory that has a custom layout.  However, the controls on the differnt pages will always be the same (with the same ID) from portal to portal, it's just the layout will be different.

    Is there a way to grab that file and stuff it into the 'View...ascx' file used by the custom module?  Maybe use a placeholder on the View page that we then cram the .ascx from the protal's skin directory into?

    Can you stick a user control into another user control using the Page_Load event to determine where directory we're going to pull from?

    Is there a better way to do this?

    Thanks for any help.

     

Page 1 of 1 (2 items)