i have iframe inside a page, and this iframe contain a submit button which will do some function.
What i want is: after the iframe submit finish, call the parent page to refresh.
i know how to refresh it:
parent.location.reload();
But i don’t know how to do that after submit finish.
I solved this problem by adding this line of code in the code behind after all my methods finished:
And the reason i didn’t write
parent.location.reload()and wroteparent.location.href = parent.location.hrefis to don’t send the data twice to server as i want a new fresh page load.