More in this section

Forums / Developing with Sitefinity / Create an Intra Site Module using ControlPanelBase and CommandPanelBase

Create an Intra Site Module using ControlPanelBase and CommandPanelBase

2 posts, 0 answered
  1. Shane
    Shane avatar
    28 posts
    27 Jul 2008
    27 Jul 2008
    Link to this post

    Can somebody please help me create an intra site module.

    I have used the example provided here: This did work as expected. Thanks.

    But when I try to use the ControlPanelBase and CommandPanelBase instead of the interfaces IControlPanel and ICommandPanel is doesn't work?

    Is there a working copy someone that they can show me? I have got the pluggable module working correctly.

    The biggest issue I have (I am new to web site projects - only used web application projects until now) is how do I get the two user controls to know about each other? Each control is a separate assembly! I want to be able to pass a reference for the Control in the constructor of the command panel?

    Can anybody help me?


  2. Georgi
    Georgi avatar
    3583 posts
    28 Oct 2016
    30 Jul 2008
    Link to this post
    Hi Shane,

    In C# you can inherit at most one class, and because Intrasite modules use user controls which by definition need to inherit from UserControl class, it is impossible to inherit also from ControlPanelBase or CommandPanelBase classes. Therefore interfaces are used (there are no restrictions on how many interfaces can be implemented ona class).

    CommandPanel control is initialized from ControlPanel control. In order for the two to be able to communicate, ControlPanel passes a reference to itself through an overloaded constructor.

    Please review the attached example. It demonstrates how to create Intrasite module thus shows how to get ControlPanel to know the CommandPanel control.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered