{"id":37,"date":"2016-02-17T07:14:00","date_gmt":"2016-02-17T07:14:00","guid":{"rendered":"http:\/\/waynenguyen.org\/dev\/2016\/02\/17\/add-code-behind-to-sharepoint-2013\/"},"modified":"2016-05-21T03:15:52","modified_gmt":"2016-05-21T03:15:52","slug":"add-code-behind-to-sharepoint-2013","status":"publish","type":"post","link":"https:\/\/bruceng.com\/dev\/?p=37","title":{"rendered":"Add code behind to SharePoint 2013 master page"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\">\nOne way is to add delegate control to master page. Follow the article:&nbsp;<a href=\"http:\/\/www.sharepointpals.com\/post\/Step-by-step-procedures-to-create-a-delegate-control-in-SharePoint-2010\">http:\/\/www.sharepointpals.com\/post\/Step-by-step-procedures-to-create-a-delegate-control-in-SharePoint-2010<\/a><\/p>\n<p>However for some reason, it&#8217;s required to set ControlSrc to &#8220;~\/_ControlTemplates\/15\/&#8230;&#8221; or else the control won&#8217;t be used.<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>One way is to add delegate control to master page. Follow the article:&nbsp;http:\/\/www.sharepointpals.com\/post\/Step-by-step-procedures-to-create-a-delegate-control-in-SharePoint-2010 However for some reason, it&#8217;s required to set ControlSrc to &#8220;~\/_ControlTemplates\/15\/&#8230;&#8221; or else the control won&#8217;t be used.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2,16,15],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-asp-net","tag-issues","tag-sharepoint"],"_links":{"self":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=37"}],"version-history":[{"count":1,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":157,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/37\/revisions\/157"}],"wp:attachment":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}