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

Recommended Answers

All 2 Replies

Try either

window.location.reload(true);

or

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

before you close the popup window.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.