473,378 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Internet Explorer prompts users with two open/save as dialogs

Hello.

I have a problem with my Web Application in VB.NET and aspx pages. I try to
open a SaveDialog window, to open or save a document when user clicl on a
button, and Internet Explorer prompts users with two open/save as dialogs.
this happens only when select "Open" button.

This issue is commented in this articles:

http://mosley.arach.net.au/dev/docs/save%20as.htm
http://support.microsoft.com/default.aspx/kb/238588
Here is the portion of code I use to do this, but the problem still appears:

Response.Clear()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/msword"
Response.AddHeader("content-disposition",
"attachment;filename=test.mht")
Response.Write(stm.ReadText().ToString())
Response.Flush()
Response.Close()

This error also appears if the document is .pdf type. Has anyone any idea to
solve this problem?

Thanks a lot.

Cheers.......David
Sep 28 '05 #1
1 1942
My IE version is 6.0.3790.0

Thanks again.

"David Perez" wrote:
Hello.

I have a problem with my Web Application in VB.NET and aspx pages. I try to
open a SaveDialog window, to open or save a document when user clicl on a
button, and Internet Explorer prompts users with two open/save as dialogs.
this happens only when select "Open" button.

This issue is commented in this articles:

http://mosley.arach.net.au/dev/docs/save%20as.htm
http://support.microsoft.com/default.aspx/kb/238588
Here is the portion of code I use to do this, but the problem still appears:

Response.Clear()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/msword"
Response.AddHeader("content-disposition",
"attachment;filename=test.mht")
Response.Write(stm.ReadText().ToString())
Response.Flush()
Response.Close()

This error also appears if the document is .pdf type. Has anyone any idea to
solve this problem?

Thanks a lot.

Cheers.......David

Sep 28 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: JCharlie | last post by:
hi all. I´ve a problem with x button on internet explorer. Some users fills an informative form, they push x button and i don´t save the information. How can i disable the x button on internet...
4
by: jm | last post by:
I can't find anything on the subject with C#. Thank you for any guidance. I want to create MDI windows within IE, not IE as a child window of something else.
4
by: Nicolás Castagnet | last post by:
Hi, I write this post because I notice a strange behavior related with "Temporary Internet Files" and maybe some of you can help me to understand it. I am working in a web application with...
2
by: CathieC | last post by:
I have a websote developed using visual studio 2005 beta , .net version 2 i deploy my application to a server and it is run from client computers. One of the users gets the error "Internet...
4
by: Ben Coats | last post by:
Hey, I'm trying to find code for an Explorer-style Directory ComboBox. (You know, it display "Desktop", "My Computer", all drives, etc., but it has a treeview control inside the combobox so that...
3
by: laredotornado | last post by:
Hi, This problem only affects PC IE. On a secured page (a page visited via https), there is a link that reads -- "Download HTML File". The link connects to this page <?php...
7
by: Danny | last post by:
Hello: I would like to develop a browser extension, or whatever such a thing is classified as, that would allow a user of IE6, and possibly IE7, to switch between a live and development page. ...
4
by: Dominic Vella | last post by:
Hi I have a list of favorite websites in a table. I use the following command to view it: strAppName = "C:\Program Files\Internet Explorer\iexplore.exe " & me!web_address Call...
2
by: swethak | last post by:
Hi, I am getting the problem the problem with google map in Internet Explorer. This map worked fine in mozilla . When i opened the same map in Internet Explorer i am getting the error...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.