Wrapping a User Control in a Web Part
This article demonstrates how to wrap a custom User Control in a Web Part and deploy it as a feature using WSPBuilder (http://www.codeplex.com/wspbuilder).
This article assumes you have some basic knowledge about WSPBuilder and how to deploy SharePoint assemblies as solution packages (wsp).
Solution Overview
The solution architecture consists of the following two projects:
- A WSPBuilder Project using the Visual Studio project template installed during the setup of WSPBuilder. This project will allow us to create the wsp file to be loaded in the SharePoint solutions store.
- A classic ASP.Net Web Application Project to create our user control. We will create custom post-build scripts to copy the user control to the CONTROLTEMPLATES sub-folder created in the WSPBuilder project.
Please download the white paper here.
About the Author
Gilles Uréna is an independent SharePoint Consultant. Gilles is the owner of SharePoint Global Services, an organization built from the ground up to provide consulting services on the SharePoint platform and surrounding technologies. You can contact Gilles at gilles.urena@sharepointglobalservices.com