Hi,
I have a gridview with a button which allows the grid to be exported to excel. Before the grid is databound, it is cached. When I click on the button, it calls a javascript client function which basically opens a new window. In the new ASPX pop-up page it retrieves what was in the cache (the grid data) and then renders using added response calls to get the browser to output to excel. I need to do this in the pop-up as the originating page is using AJAX, and response calls don't play nice inside AJAX. This works ok in FireFox, but in Safari, it leaves the pop-up open. While this isn't a show stopper I don't want a blank pop-up to show every time I want to export some data. How can I get this not to happen? I'm wondering why Firefox doesn't keep the window open. Maybe the call to Response.Flush() and Response.End()? I want Safari to behave like Firefox and not hold the popup open. I've put in a window.close() call inside the popup, but nothing happens. If I view the source of the pop-up its basically blank.
Hope someone can help...