Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Guys, Got a quick question to ask. I am opening a new window when clicking
on a button. When the form is submitted on teh Child window, i want it to
close and reload the parent page. Can this be done? i have tried using
javascript however got the close part but i am not able to reload the parent
window.

Can anyone shed light on this?

Thanks

Manny
 
Hi,

I hope ur talking about asp.net :-)

suppose the button that is used to submit/postback is Button1 and has a
event code

Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)
Handles _
Button1.Click
' Process the postback as usual here
' ....
' Next, close the browser window

Response.Write("<script>window.opener.location.reload();window.close);</script>")
End Sub


Hope that helps.
 
Back
Top