472,126 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

Closing the Open Save Dialog when user selects Save

Hi All

I am using two aspx pages

The first aspx page loads the second page in a popup window.

The second aspx page has no html and I change its content
type to download a particular file.

When I get the 'Open Save Cancel' dialog box in case I click on Cancel
or Open the box performs perfectly however when I click on save the
user is properly presented with a dialog box
containing the right filename.

But here the aspx page at the back does
not close. That is the window which started the dialog remains open
even after the user saves the file.

I need to close this open window.

Can anyone help me with this ??

Rajan

Oct 31 '06 #1
2 2409
If there's no HTML, why do you need to open a new window?

BusyBoy wrote:
Hi All

I am using two aspx pages

The first aspx page loads the second page in a popup window.

The second aspx page has no html and I change its content
type to download a particular file.

When I get the 'Open Save Cancel' dialog box in case I click on Cancel
or Open the box performs perfectly however when I click on save the
user is properly presented with a dialog box
containing the right filename.

But here the aspx page at the back does
not close. That is the window which started the dialog remains open
even after the user saves the file.

I need to close this open window.

Can anyone help me with this ??

Rajan
Oct 31 '06 #2
"BusyBoy" wrote:
The first aspx page loads the second page in a popup window.

But here the aspx page at the back does
not close. That is the window which started the dialog remains open
even after the user saves the file.

I need to close this open window.
You could make the only html in the page:

<script language="javascript" type="text/javascript">
<!--
window.close();
//-->
</script>

which would close the window after it has finished processing.
Oct 31 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by John | last post: by
4 posts views Thread by DM | last post: by
2 posts views Thread by Jonathan Trevor | last post: by
reply views Thread by Dune | last post: by
24 posts views Thread by Kelly | last post: by
5 posts views Thread by Stefano Tonello | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.