Posted on 2007-03-26
I have a ASP.Net application that open a form using the following code:
window.open('zoom.aspx?hqk=" & utQuestions.SelectedNode.DataKey & "','','width=620, height=250');
That works just fine and passes in the Key no problem.
After changes were made in the popup - I ran a SQL UPDATE and that worked fine. However, the window.opener.location.reload() would cause the parent form to submit back to the database and therefore overwrite the information from the ZOOM box.
So it looks like the best solution is to use:
window.opener.document.getelementbyid('UltraWebTab1__ct12_txtResponseRequired').value = txtZoom.Text;
The goal of that is to just have the text from txtZoom put into the txtResponseReqruired control on the parent page.
FYI - I used "UltraWebTab1__ct12_txtResponseRequired" because that is how the name of the control appears when I do a "View Source"