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

Block "File Download" window

P: 65
Hi,

Since I need to insert a a excel file in the HTML, I used <iframe> tag. But this tag PROMPT me the "File Download" dialog box every time the page got refreshed. Is there any ASP code to block that "File Download" box


Regards,
Nedu. M
Oct 10 '07 #1
Share this Question
Share on Google+
2 Replies


jhardman
Expert 2.5K+
P: 3,405
Nedu,

I don't believe there is, this is actually a browser-dependent behavior and nothing ASP does will allow you to change that.

Jared
Oct 14 '07 #2

markrawlingson
Expert 100+
P: 346
I think what you are trying to do is actually display the textual contents of the Excel document onto your HTML page in a table data cell separated fashion. Is that correct?

It sounds like what you've done is setup an IFrame with the SRC attribute pointed to the location of the Excel document in an attempt to display it on the page. Which won't work, because when the IFrame loads it will load the file, which will then prompt the user to download it because of its file type. It won't simply be interpreted by the browser and displayed.

If what I'm saying is accurate, what you'll want to do is use ASP to read the contents of the excel file and then spit out the contents onto your page in whichever fashion you like.

Let us know if this is correct, because we can assist you with that.

Sincerely,
Mark
Oct 15 '07 #3

Post your reply

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