469,313 Members | 2,671 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,313 developers. It's quick & easy.

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 2323
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
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.