I have searched everywhere to find a solution for opening an entire .aspx web page inside a modal dialog box. I do not want to open a specific web part, I would like to embed the entire page, with all it's original functionality, into a modal box that I can bring up with a button.

Can someone help me with this? Thank you!

1 Answer 1


You can use below script to open webpart page in model dialog

<script type="text/javascript">
function ShowDialog(URL) {
                        var options = SP.UI.$create_DialogOptions();
                        options.url = URL;
                        options.width = 600;
                        options.height = 600;
            options.title = "Title";
<a href="javascript:{ ShowDialog('yourpage.aspx?IsDlg=1'); };">Link</a>

Reference: https://social.msdn.microsoft.com/Forums/en-US/b0f1f43e-b481-44a5-b03b-15d481fc180e/display-web-part-page-in-modal-dialog-without-ribbon-controls?forum=sharepointcustomizationprevious

  • 1
    My webpages are still not showing up. I've tried multiple pages and messed with the file paths, tried with the extension and not, but nothing is working. I'm still getting errors when trying to load saying the "webpage is not found", or there was a "technical error". Does it make any difference that the pages have either lists or infopath forms on them?
    – josh
    Commented Aug 11, 2017 at 16:51
  • Page content type need to be webpart page. Wiki page will not open in pop up.
    – P S
    Commented Aug 14, 2017 at 4:57
  • Hi Josh, Please accept the answer if it helped you.
    – P S
    Commented Sep 6, 2017 at 9:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.