10. February 2010, 12:25
Matthew
Have you successfully run this code? I get the follwing error: Microsoft.SharePoint.WebPartPages.WebPartPageUserException: This page has encountered a critical error
28. March 2010, 17:50
Fernando hunth
What is WebPartToBeAdded ?
30. March 2010, 01:09
Avi
WebPartToBeAdded is the class name of the web part you want to add. For example if you want to add SharePoint's List View web part, then the WebPartToBeAdded will be replaced by ListViewWebPart.
26. April 2010, 00:22
Awdhesh
i have to load another Webpart (Say webpart B) on the click event of button which is on webpart A.My requirement is to replace webpart A to load webpart B. I write above mention code on the click event of a button. then i called both the webparts on sharepoint. But once i click on the button of webpart A its showing me Error. how to approach Further. Regards Awdhesh
29. June 2010, 15:28
Carl
How can I delete a Zone from the site? I am a delegate administrator so I dont have the SP Designer. How can I delete the zone using the same page editor?
30. June 2010, 11:24
Hi Carl, Are you talking about web part zone? If yes, then as per my knowledge there are following three ways to remove a web part zone: 1) Delete the web part zone using SP Designer 2) If web page has been created using a Page Layout, then download this page from the master page gallery, open it in any text editor, locate the web part zone you want to delete, and delete the web part zone, and then save. Then upload the modified page layout back into master page gallery. 3) Third option is to delete the web part zone programmatically using SharePoint Object Model. I am not sure about this but this must be possible as SharePoint object model is very rich. You can try for option 2 and 3.