<div class="modal fade" id="ModalTest" runat="server" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="H1">Modal title</h4> </div> <div class="modal-body"> Sample text </div> </div> </div> </div>If I place the following button on the page, I have no problem calling this modal dialog:
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#ModalTest"> Launch demo modal </button>But I can't seem to figure how to call this dialog in the code, after certain procedure if finished. Just to show to the user Success or Failure.