I only want to refresh the parent page if the user clicks a certain button on my pop-up window.
For that button, I have the following code on the button click event, but it's not working:
Dim scriptString As String = "<script language=JavaScript> "
scriptString &= "window.opener.document.forms(0).submit(); </script>"
If Not Page.IsClientScriptBlockRegistered(scriptString) Then
Page.RegisterClientScriptBlock("script", scriptString)
End If
Any suggestions are appreciated! Should I try Parent.Refresh() in the button click event?
Thanks!
For that button, I have the following code on the button click event, but it's not working:
Dim scriptString As String = "<script language=JavaScript> "
scriptString &= "window.opener.document.forms(0).submit(); </script>"
If Not Page.IsClientScriptBlockRegistered(scriptString) Then
Page.RegisterClientScriptBlock("script", scriptString)
End If
Any suggestions are appreciated! Should I try Parent.Refresh() in the button click event?
Thanks!