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

Tobias Zimmergren
Tobias Zimmergren

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 plan, architect and develop software and distributed cloud services. Nice to meet you!

Reactions and mentions


Hi, I'm Tobias 👋

Tobias Zimmergren profile picture

Find out more about me.

Recent comments

Recommended books!

Prepare for the AZ-500 exam!
Exam Ref AZ-500 Microsoft Azure Security Technologies
Azure Security Handbook!
Azure Security Handbook: A Comprehensive Guide for Defending Your Enterprise Environment
Prepare for the SC-900 exam!
Exam Ref SC-900 Microsoft Security, Compliance, and Identity Fundamentals