ASP.NET (closing popup window & passing session variable)
Posted on 2004-03-25
I have an .aspx page (main.aspx) with a button that opens up a popup window (popup.aspx) using the code below.
Private Sub btnOK_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOK.Click
"window.open('popup.aspx', 'CustomPopUp', " & _
"'width=640, height=470, menubar=no, resizable=no, scrollbars=no')" & _
Here is my question.
The popup window is a survey where the user answers some questions. (True/False & multiple choice). I have some code that builds a string of characters based upon the responses. String consists of 1's, 2's 3's, & 4's and is held in a session variable.
When the survey is complete, I would like to close window (popup.aspx) and pass this session variable back to (main.aspx).
Any suggestions or answers on the best way to do this?