Netscape Appending .aspx to downloads

J

Jeff Cooper

Hey there,

I have a download page which I (finally) got to work ok with IE. But, when
downloading in Netscape, it appends ".aspx" to the filename. Below is the
code from the Form_Load event of download.aspx:

Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment;
filename=""myfile.tab""")
Response.Write(S)
Response.End()

When linking to the page in Netscape 7, the save dialog appears, but the
default filename is now "myfile.tab.aspx", and the type is "*.aspx".
Originally, I had the ContentType set to text/plain, which also worked ok in
IE, but it simply opened in the netscape's browser window. The
octect-stream type set above was my first attempt to fix the problem.

Any thoughts on how to properly set the mime type to Netscape will download
a tab file without the extra aspx extension?

Thanks,

Jeff
 

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,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top