Returning Values from a Child Window

  • Thread starter Thread starter rbutch
  • Start date Start date
R

rbutch

hey guys any ideas why i would get a browser alert of==
"The page cannot be refreshed without resending the information"
"click Retry to send the information again..etc"
i'm opening a child.aspx window using==
btnConfirmUpdate.Attributes.Add("onclick", "window.open('popup.aspx','popup','width=250,height=250,left=270,top=180');")

and then depending on which button you click in the modal window, it stores into a session variable (yes or no)

Button1_Click(etc)
Session("decision") = "yes"
so far so good. now i have a response stored in the session variable. i just need to get back to the parent and somehow do a postback or something to load that variable.

but, when it runs this code below to refresh the Parent which would update and store that session variable, it gives the browser alert i referred to at the beginning of this post.

Response.Write("<script language=javascript>opener.location.reload();window.close('popup.aspx');</script>")


thanks for any help on this.
rik


**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
i found my answer and it works like a charm


Response.Write("<script language=javascript>window.opener.location.assign('WebForm1.aspx');window.close('popup.aspx');</script>")


thanks
rik

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
Back
Top