More in this section
Forums / Developing with Sitefinity / Programmatically adding user control to page on creation

Programmatically adding user control to page on creation

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. Joao
    Joao avatar
    7 posts
    19 Jul 2011
    09 Sep 2011
    Link to this post


    I'm using Sitefinity 4.2. I have created a masterpage, with content placeholders, which I am using as a template when creating a new page. I then have several different custom user controls, which I drop into the different placeholders, and set the parameters for them through the control edit forms. This standard scenario works fine.

    As our end users are not very sophisticated, I would like to create a new scenario in which, when a new page is created via the admin console on the basis of my masterpage, different controls are programmatically inserted into the various placeholders, and values for control properties are set. All the end user then has to do is to tweak the property values on one or two controls, and he's done.

    Any ideas on how I would go about doing this?

  2. Victor Velev
    Victor Velev avatar
    1345 posts
    06 Jul 2015
    13 Sep 2011
    Link to this post
    Hi Joao,

    You can check our documentation which contains code sample on how you can achieve that.

    Victor Velev
    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