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 overridden the GlobalNavigation delegate control and have been very pleased with the results. Now I would like to remove my global navigation from application pages that display in iframes (check permissions form, new site form, etc...).

I do not want to exclude all pages in the layouts folder though because I want my global navigation to display on the site settings page, osssearchresults.aspx, etc..

share|improve this question
up vote 4 down vote accepted

Check out this article from Randy Drisgill. It's exactly what you need. Add the s4-notdlg css class to each div you want to hide in dialogs.

share|improve this answer
That's actually awesome, I need to do exactly this in something I'm working on (though it's not a delegate control, I need the same behaviour). – James Love Jun 14 '11 at 18:06
Great resource! Thanks! – trgraglia Apr 5 '12 at 11:10

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.