471,092 Members | 983 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Problem related to File Download

Friends i need your help on the below issue please help me urgent......

Thanks in advance...

I have a web site where i have a button called report. On click of report button some data is being written in to a html file and a new window appears as expected.Here in this new window i have two frames.In the first frame i am displaying the html file and in the bottom frame 3 other buttons are there. one is "save", second is "print" and third is "download". From the button captions it is clear that what should be the functionality of each of the buttons.

When i click download button the download button the download dialog appears but once i download the file the window closes which i dont want.

The above problem is due to the response.addheader method which i have used for setting the filename for downloading.

Is there a way to download the file with out closing the window?
Sep 10 '07 #1
1 1182
3,406 Expert 2GB
possibly. Could you look up the code for the button page and figure out what function is being executed when you click the download button? Print the code for that function and I will try to see how to modify it.

Sep 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Marin | last post: by
1 post views Thread by Wernfried Schwenkner | last post: by
1 post views Thread by theburnetts | last post: by
81 posts views Thread by =?utf-8?B?4piG4piG4piG4piG4piGIFPDvCBLZWl0aCBDaGFr | 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.