Parent page:
Code:
<script type="text/javascript">
function OpenPopup() {
window.open('ChildPopupWindows.aspx', '', 'width=200,height=100');
};
</script>
<input type="button" value="Open popup" onclick="javascript: return OpenPopup()" />
Child Page:
Code:
<script type="text/javascript">
function CloseWindow() {
window.close();
window.opener.location.reload();
}
</script>
<asp:Button ID="btnServer" runat="server" OnClick="btnServer_Click" Text="Request server" />
<br />
<input type="button" value="Close Window" onclick="javascript: return CloseWindow();" />
C#:
Code:
protected void btnServer_Click(object sender, EventArgs e)
{
}
Or something like this in the child page using window.opener:
Code:
<script>
window.onunload = refreshParent;
function refreshParent() {
window.opener.location.reload();
}
</script>
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.

I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..