update usercontrol path

Posted by Community Admin on 03-Aug-2018 22:16

update usercontrol path

All Replies

Posted by Community Admin on 23-Aug-2011 00:00

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?

Posted by Community Admin on 26-Aug-2011 00:00

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

This thread is closed