Category Archives: WebPart

How to remove “No results are available. Either no query is specified, or the query came from advanced search (Federated Webparts do not support Advanced Search queries)” when no search keywords are specified

The OOTB Search Core Results web part will show the message below when no search keywords are specified (i.e. no k=blah in the queryString): No results are available. Either no query is specified, or the query came from advanced search … Continue reading

Posted in Search, SharePoint 2010, WebPart | Leave a comment

Removing duplicate web parts when changing page layout via the ribbon

In SharePoint 2010, if a page layout contains web parts, then when you change the page layout via the Ribbon while editing the page, then the page will have web parts of both the previous and the new page layouts. … Continue reading

Posted in Page Layout, SharePoint 2010, WebPart | 5 Comments

How to enable Export on custom SharePoint web part

By default your custom SharePoint 2010 web parts will not have the Export command enabled. To enable this command, in your .webpart file, add the following element in the <properties> section: <property name=”ExportMode” type=”exportmode”>All</property>

Posted in SharePoint 2010, WebPart | Leave a comment

Can’t get UpdatePanel in your web part to do AJAX-postback?

If your web part is creating the UpdatePanel dynamically, e.g. in the CreateChildControls() method, check that: The UpdatePanel has an ID assigned The UpdatePanel’s UpdateMode property is set to Conditional. The default is Always. The control triggering the postback (e.g. a … Continue reading

Posted in AJAX, SharePoint 2010, WebPart | Leave a comment

Pass-through XSL for debugging

When debugging certain webparts (e.g. CQWP), you often want to see the raw XML before the XSL is applied. The XSLs below (developed by a colleague) will spit out the original XML.   This one below renders the XML as a table, with … Continue reading

Posted in WebPart, XSL | 1 Comment