![]() Search for web part in Pages document library Public static void FindWebPartHelper(SPWeb site, string webPartName) Using (SPWeb rootSite = siteCollection.OpenWeb())įindWebPartHelper(rootSite, webPartName) Using (SPSite siteCollection = new SPSite(siteCollectionUrl)) Here's the code: public static void FindWebPart(string siteCollectionUrl, string webPartName) ![]() ![]() If you'd like to find all Content Query web parts then you would call my code like this: FindWebPart("", ".ContentByQueryWebPart") If you're looking for code, I've got something for you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |