+2  A: 

Try something like this:

parent.document.getElementById('btnSubmit').click();; // submit the parent form
self.close(); // close the current window
Chris Pebble
+3  A: 

You should be able to call functions in window.parent.

<script type="text/javascript">
    function closeThisPopupWindow()
    {
        if (window.parent && window.parent.callBack)
            window.parent.callBack();
        window.close();
    }
</script>

Obviously you would need to attach the closeThisPopupWindow function to your button.

Joel Potter
+1  A: 

I would do something like so in button click of the popup

ClientScript.RegisterStartupScript(typeof(string), "auto_refreshparent", @" window.opener.location.reload(); ", true);
ClientScript.RegisterStartupScript(typeof(Page), "ThatsAllFolks", "window.close();", true);
cgreeno