javascript - How to submit parent window form when child window closes -
i have gridview
displayed in page has link. when click on link, showmodaldialog()
open can edit value. after when pressing update button value getting updated in database , kid form closes perfectly. need update parent page table well. new value gets reflected in parent form. tried next in kid window. <body onunload="window.opener.document.forms[0].submit();">
not working. suggest me solution.
you not have onunload in modal dialog
var res = showmodaldialog(...); // execution blocked until modal closed if (res) location.reload(1); // res contains dialog set returnvalue
and in modal dialog
window.returnvalue=true; // if ok submission window.close(); // homecoming command opening window
anyway, did right? there many duplicate questions gridviews , modal dialogues
javascript asp.net gridview
No comments:
Post a Comment