WSS v3.0: Import an ASP.NET Web Part to your Windows SharePoint Services Site

Tobias Zimmergren
Tobias Zimmergren
💡TIP: Check out the guidance for building sustainable Azure workloads! 🌿

It is possible to use your ASP.NET web parts in your Windows SharePoint Services (WSS) application simply by exporting them to create .webpart files.
.Webpart files are simply XML files that contains property values, state data, assembly or source file details about your Web Part (WP).

In order to be able to export your WP, you need to make some changes to your WP code and the configurationsettings.

Step by Step:

  1. In your WP code, set the ExportMode property to allow properties to be exported, like this:
                    this.ExportMode = WebPartExportMode.All;
  1. Locate and modify your system.web section in your web.config configuration file, like this:

  2. Choose export from the Web Part menu to create a .webpart file which you now can import into your WSS WP Page :)

SharePointASP.NET

Tobias Zimmergren Twitter

Hi, I'm Tobias! 👋 I write about Microsoft Azure, security, cybersecurity, compliance, cloud architecture, Microsoft 365, and general tech!

Reactions and mentions


Presently sponsored by:
Hornet Security
Mastodon