Sharepoint Call page form in a modal pop up window

A simple snippet to call the sharepoint popup modal dialog window with our custom page reference.

<asp:Button ID="myButton" runat="server" OnClientClick="var options = {url: '/sitePages/pagename.aspx', Title: 'Title of the Form'};SP.UI.ModalDialog.showModalDialog(options);return false;" />

One thought on “Sharepoint Call page form in a modal pop up window

  1. Koko

    You are doing a good job Jay by sharing this useful SharePoint tricks with us. Keep up the good work.

Leave a Reply

Your email address will not be published. Required fields are marked *