refresh the parent window when closing the popup
hi,
i have some problem with the popup and parent window combination.the senario is like this
when i click on the datagrid columns popup with relative information is displaying thats going well.when i update the information in the popup window and clicks on the update button the popup should be closed and the parent one is to be refreshed.i am getting this to right but the problem is whenever i am trying to relod the parent one
dialog box is comming in the browser stating that r u want to reload or not.how can i remove this message .
any body please give up
on the update button i used this code.
constring = ConfigurationSettings.AppSettings("ConnectionStrin g")
conpb = New SqlConnection(constring)
cmdSelect = New SqlCommand("Pb_Sp_UpdateNotes", conpb)
cmdSelect.CommandType = CommandType.StoredProcedure
cmdSelect.Parameters.Add("@Follow_Up_Date", Request.Form("Txtfollowupdate"))
cmdSelect.Parameters.Add("@Follow_up_complete", "0")
cmdSelect.Parameters.Add("@Visit_Comments", Request.Form("txtcomments"))
cmdSelect.Parameters.Add("@Visit_Id", Request.Form("lblvisitid"))
conpb.Open()
cmdSelect.ExecuteNonQuery()
conpb.Close()
Dim script As String = ""
script &= "<script language=javascript>"
script &= "opener.location.reload(true);"
script &= "opener.clientinfo.submit();"
script &= " window.close();"
script &= "</script>"
Response.Write(script)
regards&thanks,
RamuSiddineni.
|