It could be few different reasons for it to not working
self.opener.window.document.forms(0).submit() will work only if you are
opening the pop up with winodw.open command. if it is a ModalDialog
,self.opener will be null..
If you have any Frames/Iframes in Parent window , opener.window.document
will rfer to the document in the frame.. you may need the reference to the
document with form in it.
To test if reference is correct , try placing a simple HTML Button in the
popup and call this self.opener.window.document.forms(0).submit() onclick of
it.
"Mardy" wrote:
I saw another source with similar advice but am having trouble with it
I have the following code in a sub in the codebehind of my pop up window.
Dim strUpdate As String = "<script language='Javascript'>Update
=self.opener.window.document.forms(0).submit();</script>"
Page.RegisterClientScriptBlock("Update", strUpdate)
I don't get any errors but the original page doesn't update either
"Sreejith Ram" wrote:
You will need to get the handle of the Parent Window and call
Forms[0].Submit(); from the popup.
I think the syntax is
self.opener.window.document.forms[0].submit();
"Mardy" wrote:
Hello
I'm trying to use a pop-up to capture some information and then return the
user to a datagrid containing the changes made in the pop-up.
I have the database update working and the pop-up opens and closes correctly
but I need to find a way to cause the datagrid to refresh once the pop up
closes. How can I force a postback once the pop-up closes?
Thank you