I have a page that generates a report in excel. They page is submitted and the sql query is built in the .cs file, then a javascript function opens a new window sending that query to a page that gets the results and puts the info into a spreadsheet. first time you run it is works fine. if you go back to the parent window and run the report again, sometimes it will close the existing popup window other times it will run the report with no problems.
What could be causing this?
Is it possible to detect if a popup is open and close it before opening a new one?
What could be causing this?
Is it possible to detect if a popup is open and close it before opening a new one?