More in this section
Forums / Developing with Sitefinity / RaiseEvents between controls(widgets)

RaiseEvents between controls(widgets)

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Mosu Babu
    Mosu Babu avatar
    1 posts
    13 Apr 2010
    27 Jul 2011
    Link to this post

    Hi everyone,

    I am new to Sitefinity and was wondering how I can catch my Raised Event from one user control in an another.

    I found this old thread
     but this is between a page and the control. Since this can't be done on Sitefinity as we don't have access to the page , I am stuck.

    so how do I Raise an event in one control and catch it in an another.


  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    01 Aug 2011
    Link to this post
    Hi Mosu Babu,

    In Sitefinity 4.x you have the ability to create a custom page from which you pages to inherit. You have to create a class which inherits from ASP.NET Page class. There in the Init event of the page you have to traverse the control tree and find the controls for which you want to attach event handlers. Once you find those controls you have to create event handlers for them. The custom page type is set from each page's properties.

    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered