Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Modal Dialog from Code Behind
Message
De
22/12/2014 21:23:46
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01612587
Message ID:
01612588
Vues:
50
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform