Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Delegate control data not showing

$
0
0

Hi,

I am trying to set the Header and Footer in master page using the Delegate control.

I am following the below article:

http://pratapreddypilaka.blogspot.in/2013/03/using-delegate-control-in-sharepoint.html

In the master page, I have added the below:

<SharePoint:DelegateControl ID="DelegateControl8" runat="server" ControlId="BlogLogoControl"/>

I have created a user control and added the code to fetch item from custom list.

Created a folder called "CustomModules" and added a module. Named module as "DelegateModule". Removed the txt file. In the elements.xml, I have put as below:

<?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"><Control Id = "BlogLogoControl" Sequence="90" ControlSrc="~/_controltemplates/TestProject/HeaderUserControl.ascx" ></Control> </Elements>

Added the module to a "site" feature and deployed. But the header is not getting set. I have added a debug point in the user control page load, which is not being hit.

How to fix this?

Thanks


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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