472,145 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Block "File Download" window

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
2 1674
jhardman
3,406 Expert 2GB
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
346 Expert 100+
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.

Similar topics

10 posts views Thread by StevePBurgess | last post: by
24 posts views Thread by AES/newspost | last post: by
4 posts views Thread by L. Scott M. | last post: by
2 posts views Thread by barthelemy.von.haller | last post: by
reply views Thread by leo001 | 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.