Update parent window from popup window

Ido

Freshman
Joined
Oct 12, 2003
Messages
44
Location
Israel
Hi,

On my web page there is a datagrid control and also a link inside it. when the link is clicked it open a popup a window with window.open javascript function.

When the popup window is closed (the user clicked the close button on it) -
my datagrid in my main web page (parent window) must be rebinding with
new data from the popup window.
I did some seraching for popup windows, and found some samples codes.
Here is one:
Code:
Dim str As String = "<script language=javascript>opener.location=opener.location </script>"
            Response.Write(str)
         
            
            str = "<script language=javascript>window.close()</script>"
            Response.Write(lstr)

But, since in my parent window page_load procedure - i do not bind the datagrid (only after 'load' button was clicked) - this javascript code
do close the popup window and make some kind of refresh to the parent window - but the datagrid will not show. Can i fire the btnLoad_Click event in my parent window but from the popup window?

or, in other words, how can i make my parent window get the data changed
in the popup window and then bind it to the datagrid again, so it show the last changes?
 
Back
Top