html - Asp.net Button click inside Jquery Modal popup -
in asp.net application have used modal pop using jquery. inside pop window have asp.net button. in need write server side code inserting data database. when click on button modal pop getting closed. want keep modal pop open when click on button. below html code,
<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 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 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 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 proceed " /> </div> </div> </div> </div> </div>
is there way hold popup window out closing when button clicked.
thank in advance sangeetha
you can achieve using following options
- put modal content in
updatepanel
- register clientscript in button click event open modal popup again.
Comments
Post a Comment