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

Tobias Zimmergren
Tobias Zimmergren
ScriptRunner Webinar

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 :)


Tobias Zimmergren Twitter

Hey, I'm Tobias! I write about my experiences in designing, architecting, securing, and operating distributed cloud services. Nice to meet you 👋

Reactions and mentions

Presently sponsored by:
Hornet Security