在我的 asp.net 应用程序中,我使用了 Jquery 的模态弹出窗口。在弹出窗口里面我有 asp.net 按钮。我需要在其中编写用于将数据插入数据库的服务器端代码。但是当我点击 Button modal 时,弹出窗口正在关闭。我想在单击按钮时保持模式弹出打开。下面是我的html代码,
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
<div class="row route-for-reg">
<div class="routes-container">
<div class="row padding-tb-10">
<div class="col-md-4 col-lg-3">
<asp:DropDownList ID="dpPickupLocation" CssClass="form-control ng-pristine ng-untouched ng-valid ng-valid-required " data-placeholder="Choose pickup point..." runat="server">
<asp:ListItem>as</asp:ListItem>
</asp:DropDownList>
</div>
<div class="col-md-4 col-lg-3">
<asp:DropDownList ID="dpDropLocation" CssClass="form-control ng-pristine ng-untouched ng-valid ng-valid-required" data-placeholder="Choose Hinjewadi drop point..." runat="server"></asp:DropDownList>
</div>
<div class="col-md-6">
<asp:UpdatePanel ID="modalPanel" runat="server"><ContentTemplate>
<asp:Button ID="btnViewRoutes" runat="server" Text="View All Routes" OnClick="btnViewRoutes_Click" CausesValidation="false" />
</ContentTemplate></asp:UpdatePanel>
</div>
</div>
<div id="accordion-resizer" class="row padding-tb-10">
<div id="accordion">
<h3>Pickup</h3>
<div>
<asp:Label ID="lblHolderPickup" runat="server" Text="There are no routes available"></asp:Label>
<asp:GridView ID="gridPickUp" runat="server" CssClass="routes-list"></asp:GridView>
</div>
<h3>Drop</h3>
<div>
<asp:Label ID="lblHolderDrop" runat="server" Text="There are no routes available"></asp:Label>
<asp:GridView ID="gridDrop" runat="server" CssClass="routes-list"></asp:GridView>
</div>
</div>
</div>
<input class="primary-bt" type="button" value="Click to Proceed " />
</div>
</div>
</div>
</div>
</div>
有什么方法可以在单击按钮时保持弹出窗口而不关闭它。
提前谢谢你