ShikkurDude
Programmer
I have a page "ChangeEvent.aspx" that (using JavaScript) pops up a window. On the popup I have a "Cancel" Imagebutton. I am trying to get that button-click to close the popup and refresh the parent ("ChangeEvent.aspx").
The following code does accomplish closing the popup, but it's not refreshing the parent.
How, please, do I get the above code to also refresh the parent?
Thanks so much,
E.
The following code does accomplish closing the popup, but it's not refreshing the parent.
Code:
Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnCancel.Click
Dim script As String = "<script language=""javascript"">" & System.Environment.NewLine & "self.close()" & System.Environment.NewLine & "self.parent.location = self.parent.location.href=""ChangeEvent.aspx""" & "</script>"
Page.RegisterStartupScript("PopupClose", script)
End Sub
Thanks so much,
E.