Click here to Skip to main content
15,910,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
In my a.aspx page, there is a link to open b.aspx page in a modal window using tinybox. Now after I change something in my popup page (b.aspx) I want to push close button, and so close b.aspx and refresh my parent page.
Does anybody know about that?

Thanks a lot.
Posted

1 solution

Ok, I have solved it and if someone needs, I am sharing the solution.

in a.aspx page,

<script>
function refreshParentPage() {
            $('#form1').submit();
        }
</script>


and in my popup page, b.aspx,
<script>
function refreshParent() {
            parent.refreshParentPage();
        }
</script>



That is all, after that, you can assign this function to any controls onclick event.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900