Shows the bootstrap modal dialog box.
The Id for the dialog and prefix id for inner elements.
The modal type. Either Static or None. Static does not allow hiding by clicking out of the dialog.
The title line of the dialog.
Shows the Close button in the footer. Element id = Id_close
Shows the Ok button in the footer. Element id = Id_ok
Shows the Cancel button in the footer. Element id = Id_cancel
Title for the dialog.
Body element.
The footer Ok button.
The footer Cancel button.
The footer Close button.
<modal-dialog id="MyModalDialog" show-close="false" show-ok="true" show-cancel="true">This is the body <strong>html</strong> of the dialog</modal-dialog>$('#MyActionToShowDialog').click(function () { $('#MyModalDialog').modal('show'); $('body').on('click', '#MyModalDialog_ok', App.Controller.Ok); $('#MyModalDialog').on('hide.bs.modal', function () { $('body').off('click', '#MyModalDialog_ok', App.Controller.Ok); });});App.Controller.Ok = function () { $('#MyActionToShowDialog').append('<input type="hidden" name="SubmitButtonNameToUseOnControllerPostBack" />'); $('#MyActionToShowDialog').closest('form').submit();}