More in this section

Forums / General Discussions / update usercontrol path

update usercontrol path

2 posts, 0 answered
  1. Asif
    Asif avatar
    110 posts
    18 Nov 2010
    23 Aug 2011
    Link to this post

    I have updated the path of a user-control in Sitefinity 4 but there are more than 30 pages are using same user-control. However, sitefinity is not automatically updating the path of this user-control for all the pages which are using this user-control.  Is there any way to update the user-control’s path for all the pages quickly instead of going inside of each page and update the user control manually?

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

    Please take a look at this documentation article. You should take all controls in the controls collection of your pages. Then you should query for controls whose ObjectType matches the old path to your controls. Once you get all those controls you should set the ObjectType property to to the new path.

    Best wishes,
    Radoslav Georgiev
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

2 posts, 0 answered