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

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
add comment

1 Answer 1

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 : http://msdn.microsoft.com/en-us/library/ms463169.aspx

share|improve this answer
add comment

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.