Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Modal Dialog from Code Behind
Message
From
22/12/2014 21:23:46
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01612587
Message ID:
01612588
Views:
51
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform