SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to do some specific CSS changes to the publishing section of my SharePoint site when the logged in user is a specific account. To do this, I have created a custom control <HideInterfaceForSpecifiedUser />. This works fine.

However, since I link this control to the master page and it is part of my solution, all areas where the control is linked fail to load when the solution is not deployed. I can live with this, but it is a bit annoying during testing. Is there a better way to do it, so not all pages which are linked to this master page fail to load when the custom control is not deployed?

share|improve this question
up vote 2 down vote accepted

I think a good solution is to use Delegate Control on master page. The delegate control will initialize your custom control on fly. Check here for details :

share|improve this answer

Your Answer


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.