In my aspx page, I have a button. If the user clicks on this button then a Javascript function is called which checks whether user is logged in or not. If he is logged in then some operation is performed using Javascript, otherwise a pop up window is opened where user is asked for login details.

This is my code inside Javascriopt fucntion
if(top.HolderForm.LogOn.value == 'false') {
loginWindow = window.open('LogOn.aspx','login','height=300,width=500');
if (window.focus) {loginWindow.focus()}
}
else
{..

When user enters correct user name and password then pop up window should be closed and user should be directed to some page. In the aspx.cs file where I am doing this is

//check whether user name and password are correct
if(webservice1.login(username, password)) {
Response.Write("<script>opener.location.reload(true);self.close()</script>");
}

But the problem is that the opeer page is an iFrame inside the main page. So when this code executes opener.location.reload(true), only the frame is refreshed. i want the whole page to be refreshed. In other words, the parent of the iFrame that is the opener for the pop up window should be refreshed. please let me know how to do this.