The buttons below use the dialog service to display a modal dialog. One button demonstrates using a template in a script block and the other retrieving the template using an http request to the server.
Pressing this button will launch the modal dialog using a template stored in a script tag in the page.
Pressing this button will launch the modal dialog using a template retrieved using from the server using the url specified as the template.