Programmatically adding user control to page on creation
Hello. 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?
Hi Joao,
You can check our documentation which contains code sample on how you can achieve that.
Greetings,
Victor Velev
the Telerik team