javascript - Reloading a pop up window in asp.net -


i have pop window in asp.net

in pop window have 2 div.

  1. in div 1 child page being loaded.
  2. in div 2 grid-view being loaded same page.

in div 1 have save button on click of need update gridview in div 2 parent page code reference:

for div one:

<div> <input type="button" id="btnsave" value="save" onclick="someevent" class="btn btn-primary btn-sm" /> </div> 

for div two:

<div class="modal fade" id="transactionfieldmapping" tabindex="-1"                 role="dialog" aria-labelledby="mymodallabel" aria-hidden="true" style="width: 100%; height: 100%;">                 <div class="modal-dialog" style="width: 68%; height: 75%;">                     <div class="modal-content"                         style="width: 60%; height: 95%;">                         <div class="modal-header">                             <button type="button" class="close" data-dismiss="modal" aria-label="close">                                 <span aria-hidden="true">&times;</span></button>                             <h4 class="modal-title" id="h1">                                 <asp:label runat="server" id="label2" text="">data dependency mapping @ testcase level</asp:label></h4>                         </div>                         <div class="modal-body" style="width: 98%; height: 90%;">                             <table width="100%" border="0">                                                            </table>                             <iframe width="100%" height="100%" id="iframetransactionfieldmapping" frameborder="0" runat="server">                             </iframe>                         </div>                     </div>                 </div>             </div> 

div 1 code loaded in i-frame available in div two

now on click of save in div 1 need update grid-view in div 2 on same pop up.

simply want post-back child page being loaded in i-frame inside model keeping modal open.

the ajax control toolkit perfect you're after.

https://www.devexpress.com/products/ajax-control-toolkit

in terms of you're after modalpopupextender tool.

take time in understanding how work , how use them. there tonnes of videos , forum posts on these tools , it's way i've learnt how use them.

here's tip you're after in particular - asp:updatepanel

good luck!


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -