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 have a PopUp opened by

SP.UI.ModalDialog.showModalDialog

but the content of this Pop Up hasn't any styles of the Sharepoint Portal. (It hasn't access to javascript of the main page, too). It seems that is because SP uses iframes to open it.

How can the Pop Up get the styles from the main page?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Using proper master page ( MasterPageFile="~/_layouts/dialog.master") may get you the same look and feel as out of the box dialog boxes. Check out this nice article:

http://www.chaholl.com/archive/2010/11/17/using-the-dialog-framework-in-sharepoint-2010.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.