模式框未显示asp.net

时间:2018-11-07 08:27:27

标签: asp.net modal-dialog

我正在尝试显示一个模式框。每当我单击按钮时,它就会消失,但模式框不会显示。有人知道我的代码有问题吗?

asp:Button ID="searchMRF" UseSubmitBehavior="false" runat="server" CssClass="btn-primary active" Text="Search MRF No." Height="31px" Width="139px" data-toggle="modal" data-target="#TestModal" />
                                       <%-- MODAL --%>
                                         <div id="TestModal" class="modal fade" role="dialog">
                                             <div class="modal-dialog">
                                                 <%-- MODAL CONTENT --%>
                                                 <div class="modal-content">
                                                     <div class="modal-header">
                                                         <asp:Button ID="close1" class="close" Text="x" runat="server" />
                                                         <asp:Label class="modal-title" runat="server" Text="TESTING"></asp:Label>
                                                     </div>
                                                     <div class="modal-body">
                                                         <asp:Label runat="server" class="modal-lg"></asp:Label>
                                                     </div>
                                                     <div class="modal-footer">
                                                         <asp:Button ID="close2" runat="server" Text="Close" />
                                                     </div>
                                                 </div>
                                             </div>                                                
                                        </div>

0 个答案:

没有答案