Sharepoint: how can i find all the pages that host a particular web part?
As the question says - is there a way to determine which pages are including my web part? If you're looking for code, I've got something for you. If you'd like to find all Content Query web parts then you would call my code like this: FindWebPart("http://server.com/", "Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart"); Here's the code: public static void FindWebPart(string siteCollectionUrl, string webPartName) { using (SPSite siteCollection = new SPSite(siteCollectionUrl)) { using (SPWeb rootSite = siteCollection.OpenWeb()) { FindWebPartHelper(rootSite, webPartName); } } }