Today I needed to enable the export option on a custom web part.
To do this I went through the following steps:
- Opened SharePoint Designer
- Opened the site that contained the web part
- Detached the layout and opened the page that shows the web part.
- Clicked on the web part in the design mode and found the corresponding code.
- Added ExportMode=”All” so that the web part looked like this:
<aspSample:CustomWebPart id=”MyWebPart” runat=”server” ExportMode=”All” />
Quite easy after all.