1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / adding control automatically to selected pages

adding control automatically to selected pages

2 posts, 0 answered
  1. Muhammad Saqib
    Muhammad Saqib avatar
    95 posts
    Registered:
    09 Sep 2009
    29 Mar 2010
    Link to this post
    I've made a new user control. now i want it to show on some of the pages. So is there any way i can tell the control to display on these these pages etc  instead of editing all the pages and adding control to it,
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    29 Mar 2010
    Link to this post
    Hello Muhammad Saqib,

    You can add the control programmatically on these pages using AddControl method of IStagedPage object. Here is a KB article that shows how to do this using AddControl method.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about 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