More in this section
Forums / Developing with Sitefinity / Detecting a record save

Detecting a record save

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. Len
    Len avatar
    14 posts
    10 Jul 2008
    06 Oct 2009
    Link to this post
    Hi all.

    I have created a user control based on the generic module.  I would like to cache some stuff and I need to find out when a new record is created or edited.  How could I do this?



  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    06 Oct 2009
    Link to this post
    Hello Len,

    I have created a user control based on the generic module.
    Generally the control - Generic Content control and the module are two different parts. There are two types of Generic Content content items - shared content and not shared content. Both of these types can be created through Sitefinity Generic Content control. You can detect the creating of a shared content using two ways

    - Subscribing for ContentManager.Executed event in Application_Start method of Global.asax file.
    - Creating a custom control that derives from GenericContent control and create a custom Designer for this control. Then you need to override OnSaving method in your custom GenericContentDesigner and add your logic. The same applies for not shared content - it is just a content of GenericContent control.

    I hope this helps.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered