admin管理员组文章数量:1415145
I have an ASP.NET page that contains an tag which opens a modal dialog. This modal dialog contains a control that contains a button which saves some data and closes the modal dialog. How to refresh the parent page that button is clicked?
I have an ASP.NET page that contains an tag which opens a modal dialog. This modal dialog contains a control that contains a button which saves some data and closes the modal dialog. How to refresh the parent page that button is clicked?
Share Improve this question asked Mar 20, 2014 at 9:13 3bdalla3bdalla 4071 gold badge10 silver badges29 bronze badges1 Answer
Reset to default 1You can run this javascript line from the modal:
window.top.location.reload();
or
parent.location.reload();
If you do not have access to the modal, you can set a handler for the close as
ModalObject.onbeforeunload = function () {
window.top.location.reload();
};
where ModalObject is the handler that you have when you creates it.
本文标签: javascriptHow to refresh parent page after modal dialog is closedStack Overflow
版权声明:本文标题:javascript - How to refresh parent page after modal dialog is closed? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745213768a2648041.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论