Nested User Control for custom module

Last post 05-07-2005 9:45 AM by dnnstuff. 1 replies.

Sort Posts:

  • Nested User Control for custom module

    05-06-2005, 1:44 PM

    I am building a module and on one of my View Controls (which inherits from PortalModuleBase) I am trying to use a User Control with in it.

    However eventhough it also inherits from PortalModuleBase if I try and get the ModuleID it returns -1.

    Any ideas or suggestions?

    So what is the best way to pass the information down to the nested control?  I have other information I would like to get to such as the name of the parent using it.

    Thanks for your help in advanced.

  • Re: Nested User Control for custom module

    05-07-2005, 9:45 AM
    • Participant
      785 point Participant
    • dnnstuff
    • Member since 11-25-2004, 2:49 AM
    • Ontario, Canada
    • Posts 155
    Hi,

    I guess you could try casting the UserControl Parent to PortalModuleBase and accessing the ModuleId from there. If the PortalModuleBase isn't the direct parent of your user control, you might have to go up a few parent levels to get it.


    Richard Edwards
    Available DotNetNuke modules - SQLView, CSSInclude, Aggregator - Tabbed Modules, Module Rotator
    http://www.dnnstuff.com,
Page 1 of 1 (2 items)