Wednesday, July 04, 2012

SharePoint 2010 - how to remove a bad webpart from a page

If you have a webpart that is causing an error on a Sharepoint page, you can use the following URL to view all the webparts on the page, you can then select the webpart that is causing the error and delete it. http://sharepoint/SitePages/Home.aspx?contents=1

SharePoint 2010 - using stsadm to enable the developer dashboard

There are a number of ways to enable the developer dashboard in SharePoint 2010 - Via stsadm - Via Powershell - Via code I find the easiest way is via stsadm using the following command; stsadm -o setproperty -pn developer-dashboard -pv on or stsadm -o setproperty -pn developer-dashboard -pv ondemand to turn it off use stsadm -o setproperty -pn developer-dashboard -pv ondemand If you use the ondemand setting, you can turn it on and off via the user interface, you do this by clicking on the icon that you will find on the top right of the page. One thing to remember is that the developer dashboard is enabled throughout the entire Sharepoint farm, so you may not want to do this on a live server.