Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We are in the process of figuring out what needs to be done to move our application to SharePoint 2013. We have always used a custom master page with our application that hosts custom styles and a few controls. We are trying to figure out if we really need that custom master page. So far, we have found better ways to do most of the things that we used to rely on our master page to do, but we have a user control that is essential to our application that we need to appear on all of our pages. I haven't found a good way to add this control to our pages without a master page. We don't want it to be a web part.

Does anyone know how to add a custom control to a page in SharePoint?

share|improve this question
    
What functionality does your custom user control perform? –  Vardhaman Deshpande Mar 12 '13 at 3:01

1 Answer 1

up vote 2 down vote accepted

You use the AdditionalPageHead delegate control. I blogged about it here: http://www.sharepointjohn.com/sharepoint-2010-programmatically-add-javascript-meta-tags-and-css-styles-to-the-header-of-every-page/

share|improve this answer
    
The AdditionalPageHead delegate control allows you to add an ASCX user control to all SharePoint pages. –  John Chapman Mar 11 '13 at 20:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.