In a child popup window I have the following button.
<asp:Button Style="width: 100%;" ID="Button2" runat="server" OnClientClick="RefreshParent()"
OnClick="Button1_Click" Text="Select Study" />
The OnClick function allows the user to select a study which changes the entire site's content, this part works fine, thus isn't listed.
The OnClientClick function should refresh the parent page, but doesn't cause the client data to update unless I manually refresh the page (F5). Here is the RefreshParent code.
<script type="text/javascript">
function RefreshParent() {
window.opener.document.reload()
window.close();
}
</script>
In the function I have also tried:
window.opener.document.reload(true)
and
window.opener.document.href("home.aspx")
Nothing worked. Is there a method that will cause a server postback from a child window with either the code behind or javascript? Thanks.