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