By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,089 Members | 2,226 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,089 IT Pros & Developers. It's quick & easy.

Closing the Open Save Dialog when user selects Save

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
"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.