I need to create a web part that loads users controls into it. All the answers I found are either outdated or not working.
I'm using visual studio 2015 and SharePoint 2013. I created a project with my user control and other with the web part, but I don't know how to link them...
Any help? Thanks
If your webpart is not a Visual webpart, you can load user controls like this (in the webpart cs file):
If your webpart is a Visual webpart, you can load user controls inserting the following instructions in your webpart .ascx file: