0

Hi need help to solve refresh problem
I have a main webpage with a button. Once the button is clicked, a popup dialog (web form) is prompted. Once user click 'OK' in this dailog, data saving is performed and I need to close and refresh the main webpage.
How do I close and refresh the main webpage?
Currently I close this window by using
Registerstartupscript("close", "<script>window.close()</script>") in the button ok click event in code behind.
This does close the popup window but how can I refresh the main webpage?
Thanks

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by bubbleT
0

Try either

window.location.reload(true);

or

window.opener.document.forms(0).submit();

before you close the popup window.

0

Hi
Thank you very much.
The code works when the pop up returns a value.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.