Microsoft Entra Suite Tech Accelerator
Aug 14 2024, 07:00 AM - 09:30 AM (PDT)
Microsoft Tech Community
Loading .NET UserControls inside of SharePoint Webparts
Published Feb 08 2019 12:37 PM 194 Views

First published on MSDN on Nov 06, 2007

I frequently get questions regarding the use of usercontrols with in SharePoint WebParts. Someone often has a usercontrol they'd like to reuse inside of SharePoint. Sometimes developers like being able to use the designer views in Visual Studio when developing WebParts.  It is possible to display a user control from with in a SharePoint WebPart. I've prodived the following sample Visial Studio Project (C#) that shows how to do this. This is a quick and dirty example, and is by no means an official recommendation.

I have attached the sample project to this blog post. (View the blog posting individually to see the attachment download link)

Version history
Last update:
‎Apr 28 2020 11:31 AM
Updated by: