tags:

views:

14

answers:

0

Hi, I am using ASP 3.5, I have a page displaying data in grid.On click of a button, a popup window is displayed using javascript.I have two buttons "OK" and "Cancel" button in the Popup window.I have written code on "OK" button click to insert data into database and the refresh the parent window.To close itself and refresh the parent page below is the code.

  Response.Write("<script language='javascript'> { self.close() }</script>")

    ''Refresh the parent page
    Dim cScript As String
    cScript = "<script language='javascript'> 
    opener.location.href ='EditCampaign.aspx?DemoGroupID=" & DemoGroupID & "'; </script>"
    RegisterStartupScript("parentwindow", cScript)

The same code works fine when there is no AJAX and Validator used on popup window.But in the above case it only closes itself and does not refresh the parent window. The popup window has AJAX and Validartor controls.

Please help me to solve this issue.

related questions