Hello All
Hope you can help
Been pulling my hair out about a popup problem in ASP.NET. One of the
forms i wrote requires the user to select a product from a list in a
popup web form. the popup has a DataGrid on it and the page.load
function DataBinds as you'd expect.
I have Code-Behind in C# to emit a call to a JavaScript function which
uses showModalDialog() to show the popup. The product list is selected
from the parent page and inserted into a Session[] variable. This
Session[] variable is picked up by the popup and binds to the datagrid
successfully. A little more JavaScript is emitted in the popup to get
an array of data back to the parent, and also call window.close().
However, when the user has to select a second product, the popup
doesn't fire it's Page.load method and the DataGrid remains with it's
old data. The data is definitely in the Session[] store as i expected
it.
How can i get the popup to close properly so that the page.load event
fires every time?
hope it makes sense