Enabling the export option for a web part

Today I needed to enable the export option on a custom web part.

To do this I went through the following steps:

  1. Opened SharePoint Designer
  2. Opened the site that contained the web part
  3. Detached the layout and opened the page that shows the web part.
  4. Clicked on the web part in the design mode and found the corresponding code.
  5. Added ExportMode=”All” so that the web part looked like this:

<aspSample:CustomWebPart id=”MyWebPart” runat=”server” ExportMode=”All” />

Quite easy after all.

Advertisements

Please leave a comment or feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.