see above...
views:
151answers:
3
+2
A:
Try something like this:
parent.document.getElementById('btnSubmit').click();; // submit the parent form
self.close(); // close the current window
Chris Pebble
2009-03-12 17:03:40
+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
2009-03-12 17:06:02
+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
2009-03-12 17:09:18