Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Modal Dialog from Code Behind
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Calling Modal Dialog from Code Behind
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:
01612587
Vues:
45
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.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform