The web generally doesn't allow you to call code on the web page from the server without using something like web sockets or long polling. The good news is SignalR makes it pretty easy to do this.
http://www.asp.net/signalr>I would like to call the following (test) dialog box from the code behind of my ASP.NET page
>
>
> <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.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer