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 have a ContentPlaceholder in my custom master that has default content. I want to always use this default content. However there are some pages in the 14 hive that have an asp:Content that superceeds the default content. Is there a way to prevent this and if so, how?

share|improve this question
up vote 2 down vote accepted

There isn't a way to prevent the ContentPlaceHolder from being 'overriden'. If you have control over the html of the masterpage, you could can:

  • Move the defaults contents outside the content placeholder (if you are sure that the content should always be present on the page). Then put a <div style="display:none">..</div> around the placeholder.
  • Do the above but put the default contents into a new placeholder with a new unique name.
  • Alter the application pages / page layouts that are implementing the placeholder.

  • Do something clever through the object model.

share|improve this answer
Head slap....many thanks...hate when i miss the obvious :) – MikeC Nov 22 '11 at 16:08

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.