Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 26374

how to deploy a user control as a webpart in SharePoint 2013.

$
0
0

this is my code:

         Control _myControl;
        protected override void CreateChildControls()
        {
            _myControl = this.Page.LoadControl("~/_CONTROLTEMPLATES/FolderName/FORM.ascx");
            this.Controls.Add(_myControl);
        }

same code worked for me in visual studio 2008 for SharePoint 2007. but now it is not working for VS2012 with SharePoint 2013.

Thanks in advance,

M.M


Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>