Internet Explorer prompts users with two open/save as dialogs

D

David Perez

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 as.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top