Overview
Sponge's Hosting Web Part allows you to host any ASP.NET User Control (.ascx) in SharePoint.
Installation
- At first, you have to install Sponge. See the Install page on how to do that.
- Once this is done, navigate to the Site Collection you want to enable the Hosting Web Part.
- Go to Site Settings --> Manage Site Collection Features --> and activate
Sponge Feature
- Go back to a SharePoint site and click
Edit Page
button --> Add a Web Part --> Sponge Web Parts --> Hosting Web Part.
- Configure the Web Part Properties --> Configuration --> Relative .ascx Path
Add the relative path to your user control like this: ~/_CONTROLTEMPLATES/MySolution/MyControl.ascx. Click ok and your controll will load!