473,499 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Block "File Download" window

65 New Member
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 1825
jhardman
3,406 Recognized Expert Specialist
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 Recognized Expert Contributor
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

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

Similar topics

10
4728
by: StevePBurgess | last post by:
I would like to make my downloads section unbrowsable (to users) but accessible to scripts. Can I deliver a file to a browser without linking to it's URL so that I can deliver files...
2
2131
by: N. Graves | last post by:
Hey, I need to have a template ASP page that can dynamically include another file depending on that I call in the address. I have yet to make this work. Here is a sample of what I thought...
0
2613
by: Carl Owenby | last post by:
Re: Microsoft Knowledge Base Article - 174942 "File Modified Outside Source Editor" Warning Message I believe I have discovered a cause of this warning in a specific situation. I encountered...
1
6404
by: Luis Ferrao | last post by:
Hi, My Windows Forms application uses the WebBrowser control to open an Excel file since OLE objects are gone in .Net. The application is actualy a clone of the one found in the MS Knowledge...
24
3831
by: AES/newspost | last post by:
On many web sites or pages (including my own home page) clicking on certain links will start downloading a PDF file, sometimes without the author having provided any warning in the text of the page...
3
1961
by: N. Graves | last post by:
Hello, I don't understand this error message." Error accessing File. Network Connection may have been lost." I'm not using any network connection for the database. In the VBA editor is goes...
0
1311
by: Ibrahim. | last post by:
Hello, The problem I'm facing is that the file name that is displayed in File download diaglog of web page displays garbled. The file name is japanese. English names works fine. Dim...
4
3093
by: L. Scott M. | last post by:
I am invoking a file download using the following code: Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=" + downloadFile.Name);...
2
2093
by: barthelemy.von.haller | last post by:
Hello ! I am having a problem which I thought was an easy one but which starts to drive me crazy. Imagine that I have a text displayed in a div. I would like a button to download a text file...
0
7128
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7385
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4597
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
294
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.