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

Internet Explorer prompts users with two open/save as dialogs

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.